{"$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":"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"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":"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 88): ChatService._run_impl has cyclomatic complexity 88 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own 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":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"1810935fbea2c7c82e56b00556882db7aa28df79e71e553774656d491d226a62"}},{"ruleId":"D1","level":"warning","message":{"text":"Msg.append_event (cyclomatic 61): Msg.append_event has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/message/_base.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f596013bcf584defe5c5ada801c51c3c95e030b5c65e69862d95d30b00f0f9"}},{"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":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac38a3a436627e6bb442212541fddd59dcaca3d2e7a5e4f9202ec0e76a1bee2"}},{"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":"RealtimeAgent._drive_client_delegation (cyclomatic 44): RealtimeAgent._drive_client_delegation 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/agent/_realtime/_agent.py"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ad777ec8afa4bf2f15cea17d581ac64659d76418e4aff7d86a042d762de645"}},{"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":126}}}],"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":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2ba3584695575c646bf4c8d7e1cc83e19b18aec113b2c52ad6ce297fd5bd62"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._reply_impl (cyclomatic 41): Agent._reply_impl has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"134ebbffb501dc48210b87a9f3989a47547cb98d9e9234eb984ba37bbe9d162f"}},{"ruleId":"D1","level":"warning","message":{"text":"_AnthropicFormatterBase._format_messages (cyclomatic 41): _AnthropicFormatterBase._format_messages has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":34}}}],"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":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6522fc98978a0084a9efbff70421b79df4712958fff359e1202e57513f829e"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIChatModel._parse_stream_response (cyclomatic 40): OpenAIChatModel._parse_stream_response 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/model/_openai_chat/_model.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e0ef1e30083f24eb18b1ce5794950b08150b0bd87fe63e92f10ae09700705a"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIResponseModel._parse_stream_response (cyclomatic 40): OpenAIResponseModel._parse_stream_response 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/model/_openai_response/_model.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e3ad6b4e588e76807956b2764fcd7478369131eacebd65b1b7aedaed7dcaa9"}},{"ruleId":"D1","level":"warning","message":{"text":"OllamaChatFormatter.format (cyclomatic 39): OllamaChatFormatter.format 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/formatter/_ollama_formatter.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9cf350e3198f392d53b248ac52bbd2918b39ed79b92a5fd7c28985617fc89e"}},{"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":"GeminiChatFormatter.format (cyclomatic 36): GeminiChatFormatter.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/_gemini_formatter.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e3a41b93ecbb97192427b1dda9dab4614d4f6440388bd597a8727d4d27b0d7"}},{"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":304}}}],"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":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3b4b9f6064d189b3592587309bd87fe9decf4c37353c9b6148179adc4ef966"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicChatModel._parse_anthropic_stream_completion_response (cyclomatic 35): AnthropicChatModel._parse_anthropic_stream_completion_response 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/model/_anthropic/_model.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5e05c24bd08f04b685c7481184df40895f04ac7e25b1ea54977b98c9d5c843"}},{"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":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d205fb573b9a0aded941080157503b74d46e88a3417c2ee1d98bbe107236e8"}},{"ruleId":"D1","level":"warning","message":{"text":"DashScopeChatModel._parse_stream_response (cyclomatic 33): DashScopeChatModel._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/_dashscope/_model.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8be1800a67dbe3688bf0b7f77c535aa03cc32d71b243e4b81b5f289079af6c4"}},{"ruleId":"D1","level":"warning","message":{"text":"Grep.call (cyclomatic 33): Grep.call 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/tool/_builtin/_grep.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"795f0614ccd5ee407fc46c71a1b508c377a00a664065681d591dad9eea5948e8"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeAgent._on_model_event (cyclomatic 32): RealtimeAgent._on_model_event has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"63193a7e54e3872afc44524aecbcb16d1e14a154e5674ea135c7fabf3b08223d"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent._execute_tool_call (cyclomatic 31): Agent._execute_tool_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/agent/_agent.py"},"region":{"startLine":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"86695b5dc0b93464f21469dc1acd042138199a79fb347b437c08fff676679365"}},{"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":"ChatInputQueue._drain_chat_inputs_locked (cyclomatic 30): ChatInputQueue._drain_chat_inputs_locked has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_chat_input_queue.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f9983ea90397f9baab6e6da7f4f0f42586628bb26f3d2d68a4d478f1f1991f"}},{"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":"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":"GeminiChatModel._call_api (cyclomatic 28): GeminiChatModel._call_api has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f2749cc17a35f161556489ee79c69df589834506ad64af27f45224146082fc"}},{"ruleId":"D1","level":"warning","message":{"text":"XAIChatFormatter.format (cyclomatic 27): XAIChatFormatter.format 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/formatter/_xai_formatter.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d6c9503c419fdb635be1ef508ff3fe22b98ab01777061f107b300d0494cede"}},{"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":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eb7944fc44b89eec67a788a95a99d0a2bac59d67d5e37579bc5b42df1590c5"}},{"ruleId":"D1","level":"warning","message":{"text":"TTSMiddleware.on_reply (cyclomatic 26): TTSMiddleware.on_reply 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/middleware/_tts_middleware.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"1453c2273808e5519081a44d19eef52481668b794cb355c1037c1ea15e716691"}},{"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":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffff7828ba1c3a99deced5708dff61547618aef9b941361d03fe6d0147531f6"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIResponseModel._parse_completion_response (cyclomatic 26): OpenAIResponseModel._parse_completion_response 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/_openai_response/_model.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64db8614ba3fb1cc1cad202d7900bfd323470dd72f551b5cd59407db0fd4fc1"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiRealtimeModel._parse_content (cyclomatic 26): GeminiRealtimeModel._parse_content 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/realtime/_gemini/_model.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"d293e0a3e0dac63b115088c506063040e1f557fc3ec9565e07d9cde04d4c80a7"}},{"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":"Agent._compress_context_impl (cyclomatic 25): Agent._compress_context_impl has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0b37f60c410dc28d750c8d78d452488f03f2d98856184bf219336ef2f6d139"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeAgent.connect (cyclomatic 25): RealtimeAgent.connect has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58eaf35d6b28a777fbf60447dc126e8477f8c0691c014eeaf46654a017e7410"}},{"ruleId":"D1","level":"warning","message":{"text":"MoonshotChatModel._parse_stream_response (cyclomatic 25): MoonshotChatModel._parse_stream_response has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ac1366fc3a659ff92ec08d23818e60910f1369642d4f89e9683be6a4d6ff65"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIChatModel._parse_completion_response (cyclomatic 25): OpenAIChatModel._parse_completion_response has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_chat/_model.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"241d0dfc19a2b8c01fe0b62e63be19d3ef57798a30c06e1ad16b4764c8890106"}},{"ruleId":"D1","level":"warning","message":{"text":"VolcengineChatModel._parse_stream_response (cyclomatic 25): VolcengineChatModel._parse_stream_response has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_volcengine/_model.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecbb29b80269e3d416d1c8560f716fcf1d6b1a60c492dee7f655377c1ea9fde"}},{"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":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea7d4e9a4918fcbdbc93ddff886df0ba8f6d73c42121537aeb82229ef16e6cc"}},{"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":"DeepSeekChatModel._parse_stream_response (cyclomatic 24): DeepSeekChatModel._parse_stream_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/model/_deepseek/_model.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"006a407e2d9da5ad09e50e83976e0ec7c3042aeb2478c3c5e9fdfcaa78124ce4"}},{"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":2935}}}],"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":116}}}],"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":"GeminiRealtimeModel._parse (cyclomatic 23): GeminiRealtimeModel._parse has cyclomatic complexity 23 (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/realtime/_gemini/_model.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8f685d25b4f21506e6ebcc28ebdf2463fd05d129e3e4e5eee5fd683632e538"}},{"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":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"974cf0c898d08c0f4866d2c0d897370a97fc2fd38df29e6d2bc39690ec2c9d60"}},{"ruleId":"D1","level":"warning","message":{"text":"WakeupDispatcher._dispatch_one (cyclomatic 22): WakeupDispatcher._dispatch_one 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/app/_manager/_wakeup_dispatcher.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a235f83ab5afbb17da681b3a304187f789e1cd51540f96b88d55a7d6925c73"}},{"ruleId":"D1","level":"warning","message":{"text":"WebRTCSession._run (cyclomatic 22): WebRTCSession._run 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/app/_service/_webrtc_session.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ee9d08a3c6a819e3c684bfa0849c330673fe0b4290be88731d69c485cc7301"}},{"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":394}}}],"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":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ef0809d3f096f7efcd42457820c99e6654040e21e92825759c904ff7e49dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicChatModel._parse_anthropic_completion_response (cyclomatic 21): AnthropicChatModel._parse_anthropic_completion_response has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec32476e07671e43b9b410e09a7a9fb7a6dc488a3e91a15235ddf6be179259f7"}},{"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":3919}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b6d3c151870458bcd45f97fda64981d21aee466d9fbdc4524121a9f7f9a626"}},{"ruleId":"D1","level":"warning","message":{"text":"_toolkit.get_toolkit (cyclomatic 20): _toolkit.get_toolkit 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/app/_service/_toolkit.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcf9b891aa42cd6279143b2012baf0900502f06090e838b44f22a4a12c8aa43"}},{"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":"ChatModelBase.generate_structured_output (cyclomatic 20): ChatModelBase.generate_structured_output 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/_base.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1d8684659da5d5887f20c4f4e6b5ab0616aeec00e27ab102e9f25c86fe1595"}},{"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._call_api (cyclomatic 20): MoonshotChatModel._call_api 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":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"922d07a46ebfff30bc4a9e2c6f301fee73fbac8dc8d8e1ed014c469fa032dd1e"}},{"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":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"196324107645aed58ee45b2253ba5dc2b51dade3c16aa62fbc821a55bb19903f"}},{"ruleId":"D1","level":"warning","message":{"text":"Glob.call (cyclomatic 20): Glob.call has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_glob.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9f5a5d95142820ed1b64dc439dc30e4029657027f1d38f4b429064e13cc560"}},{"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":3657}}}],"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":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee90409aa85d6481fb7d396cc8b6be2b598f8c7a3cd0f0e48e0dc83b12063d07"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolResponse.append_chunk (cyclomatic 19): ToolResponse.append_chunk 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/tool/_response.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed03ade698bfb2bf5147723dcdd0ca3ec7691d67665a2eb5573130570874f4d"}},{"ruleId":"D1","level":"warning","message":{"text":"SchedulerManager.validate_schedule (cyclomatic 18): SchedulerManager.validate_schedule 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/_manager/_scheduler/_scheduler_manager.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3690c69857c926c7a04251e95246922748a573b0e45ed220dc748efb2367b3a"}},{"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":"_console._ask_user (cyclomatic 18): _console._ask_user 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/console/_console.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0db74bc3efbd445af199106ed2aaaff7f592aa0fa0968f2501a942373f3a9a8"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiChatModel._parse_stream_response (cyclomatic 18): GeminiChatModel._parse_stream_response 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/_gemini/_model.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a6994c3459734230db7809b4476d675853362a7d2b1c795cb326bf2677cd76"}},{"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":109}}}],"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":307}}}],"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":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa2ec31c15d5cfa27299ebff4beace364ec49c7136a55088de402866a68e98e"}},{"ruleId":"D1","level":"warning","message":{"text":"_realtime._create_realtime_offer (cyclomatic 17): _realtime._create_realtime_offer 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/_router/_realtime.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db9b4ef9d238f7bc466966a70cf24440834522e064c8c56d7c2805c496a4cde"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeService.create_agent (cyclomatic 17): RealtimeService.create_agent 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/_realtime.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e420e5a3b3f6db37caf5fd2e2d8c8b3c8e72e9a7179148908a2c4c572f9a96ac"}},{"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":"OllamaMultiAgentFormatter._format_agent_message (cyclomatic 17): OllamaMultiAgentFormatter._format_agent_message 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/formatter/_ollama_formatter.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3d6af5a40cca72a1f8861786fbe84b0763e669c11b1e17207706921aa1750b"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAILiveModel._parse (cyclomatic 17): OpenAILiveModel._parse 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/realtime/_openai_live/_model.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4ed8e65168cca2dc023f8e4f5c0f1a6205c9bfff8f60b97dc68517dd4536dc"}},{"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":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7a6acb43eb81c840b2e334debd37ee2b4341077759422b8518939a1f97cce7"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeAgent._run_tool (cyclomatic 16): RealtimeAgent._run_tool 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/agent/_realtime/_agent.py"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4378e4eca47f5aa5619f11d0dead2b876795f3310e57190be9d28f91c666a0"}},{"ruleId":"D1","level":"warning","message":{"text":"_client_external_tool._iter_schema_nodes (cyclomatic 16): _client_external_tool._iter_schema_nodes 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/app/_client_external_tool.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"962a3a42f666be5e749e7dd4ff3c510f4f3389a18219d61a9898bf66bc14ba5c"}},{"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":"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":322}}}],"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":672}}}],"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":190}}}],"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":"D2","level":"warning","message":{"text":"ChatService._run_impl (cognitive 161): ChatService._run_impl has cognitive complexity 161 (threshold 15). Drivers by points: if/else 48 (100 pts), error handling 8 (19 pts), boolean chains 16, loops 5 (13 pts), ternaries 9 (13 pts) (nesting depth added 75). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_chat.py"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"636fa4933a5b638f8b082c358e77e4ed3a337603e8ffe1f9e8f245d7484ae24e"}},{"ruleId":"D2","level":"warning","message":{"text":"_AnthropicFormatterBase._format_messages (cognitive 149): _AnthropicFormatterBase._format_messages has cognitive complexity 149 (threshold 15). Drivers by points: if/else 29 (114 pts), ternaries 4 (19 pts), loops 4 (13 pts), boolean chains 3 (nesting depth added 109). 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":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b220369255ef69bbe329f82345793963060f1ca9f95bdaa3c4ad3374174c06"}},{"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":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4ba44bc7ca8a6c3ca95c4a035f6358fea728c1f1c992b3f0fbb562c15e4e32"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiChatFormatter.format (cognitive 117): GeminiChatFormatter.format has cognitive complexity 117 (threshold 15). Drivers by points: if/else 19 (80 pts), ternaries 5 (22 pts), loops 4 (13 pts), boolean chains 2 (nesting depth added 87). 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":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3928cfe2b5d3baa2bc6d9c3beb44204d3c3dde509b28531d819f61f5ea0efd"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaChatFormatter.format (cognitive 117): OllamaChatFormatter.format has cognitive complexity 117 (threshold 15). Drivers by points: if/else 22 (90 pts), loops 4 (13 pts), ternaries 2 (8 pts), boolean chains 6 (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/_ollama_formatter.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16259a69b771c18105fcd32ca47ca1197022cb7656d49505892ac8c8970afda"}},{"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":276}}}],"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":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"8788c2d2fb8c48a0f138cd694c24c5a2955013a3e483b66b814aa71fb777c15c"}},{"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":726}}}],"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":304}}}],"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":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc64960c27ea19106f8a5eac48bc616939cefe27c504e1ed13c98bbfb3113b9e"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._reply_impl (cognitive 89): Agent._reply_impl has cognitive complexity 89 (threshold 15). Drivers by points: if/else 27 (62 pts), loops 8 (22 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f02f54f161d32dfe5276f512db869f22637b5ffc987fdda660c644fe4d8fa31"}},{"ruleId":"D2","level":"warning","message":{"text":"Msg.append_event (cognitive 86): Msg.append_event has cognitive complexity 86 (threshold 15). Drivers by points: if/else 26 (57 pts), loops 5 (11 pts), ternaries 3 (10 pts), boolean chains 7, match/switch 1 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/message/_base.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4a16bd4a28d74dfaa060334af35fcecc30321f17c7cc3f4a32953476034c45"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIResponseModel._parse_stream_response (cognitive 84): OpenAIResponseModel._parse_stream_response has cognitive complexity 84 (threshold 15). Drivers by points: if/else 15 (47 pts), ternaries 5 (16 pts), boolean chains 11, loops 3 (10 pts) (nesting depth added 50). 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":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"935805b371f5fff7535a131db12cfde64b440460a2bdfc97d26ff4423281ffa8"}},{"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":"RealtimeAgent._drive_client_delegation (cognitive 72): RealtimeAgent._drive_client_delegation has cognitive complexity 72 (threshold 15). Drivers by points: if/else 30 (57 pts), boolean chains 11, error handling 2 (3 pts), loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"2037b11d0fe9ee3a34d089a3b7f27963d341264478f8d317b00c29f9b841823c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIChatModel._parse_stream_response (cognitive 70): OpenAIChatModel._parse_stream_response has cognitive complexity 70 (threshold 15). Drivers by points: if/else 17 (39 pts), boolean chains 19, ternaries 3 (9 pts), loops 2 (3 pts) (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_chat/_model.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1f7cd8a06a116e83c21a2f2d5063ac10f01a9e71c92b491028bab810527f78"}},{"ruleId":"D2","level":"warning","message":{"text":"XAIChatFormatter.format (cognitive 69): XAIChatFormatter.format has cognitive complexity 69 (threshold 15). Drivers by points: if/else 17 (61 pts), loops 3 (7 pts), boolean chains 1 (nesting depth added 48). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e18d0e224b1a5e4323f01fa6167e6cec5b333f2febfc110e8a829928f89ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._execute_tool_call (cognitive 67): Agent._execute_tool_call has cognitive complexity 67 (threshold 15). Drivers by points: if/else 16 (41 pts), loops 5 (13 pts), boolean chains 5, error handling 4, ternaries 1 (4 pts) (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"32de1c645302c2005c4853c7605fc79a1e244522aae7006191453a61479b44b7"}},{"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":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9925079f48e1c716cc623505cca877b7eda471753c60e85669c8a9e705e42d9f"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeChatModel._parse_stream_response (cognitive 62): DashScopeChatModel._parse_stream_response has cognitive complexity 62 (threshold 15). Drivers by points: if/else 17 (39 pts), boolean chains 14, ternaries 2 (6 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/_dashscope/_model.py"},"region":{"startLine":311}}}],"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":"ChatInputQueue._drain_chat_inputs_locked (cognitive 57): ChatInputQueue._drain_chat_inputs_locked has cognitive complexity 57 (threshold 15). Drivers by points: if/else 11 (24 pts), error handling 7 (18 pts), boolean chains 7, ternaries 2 (5 pts), loops 2 (3 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_chat_input_queue.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f61ffc90fc75086348dcb1ccb4664ba9a76328317ae8de0db449d8bb5fc5e7"}},{"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":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54f148b992bd6e0be41e002e7a84bb78dae479bb57d50e8e2f4fcd6e1586a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicChatModel._parse_anthropic_stream_completion_response (cognitive 50): AnthropicChatModel._parse_anthropic_stream_completion_response has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (32 pts), boolean chains 13, loops 2 (5 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d61b632edefbae7554f3031cdd639217da449ce86072936253366f29b1aceb"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatModelBase.generate_structured_output (cognitive 50): ChatModelBase.generate_structured_output has cognitive complexity 50 (threshold 15). Drivers by points: if/else 13 (38 pts), loops 3 (5 pts), error handling 1 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_base.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"8735a74b5179a3d02920644596faec02e4117cafd0b435a837781a32c6b48963"}},{"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":"TTSMiddleware.on_reply (cognitive 45): TTSMiddleware.on_reply has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (28 pts), error handling 5 (9 pts), boolean chains 4, loops 2 (3 pts), ternaries 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/middleware/_tts_middleware.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fe032dd166b796c1827c067db651ef4808301e218e5ad307453ee078c54efc"}},{"ruleId":"D2","level":"warning","message":{"text":"Grep.call (cognitive 45): Grep.call has cognitive complexity 45 (threshold 15). Drivers by points: if/else 22 (33 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":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e7627d199bf13a6a610de3b36eaf2355870ea4e7d2c1c1c34463b85d4f5ff9"}},{"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":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7fa22f366fb2ae3241a728ac583faabd87a62a3254225f0debd55dbfdfa320"}},{"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":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"318a11e153a4db715dd479cfa0fa785d53eb33c4921a467bc6e1368ef791a7af"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiChatModel._parse_stream_response (cognitive 43): GeminiChatModel._parse_stream_response has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (33 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe94e9bfee49a185d7905872b1b96defe06260bee1aa31d22af1ac93e334cbc"}},{"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":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b5009a567edf232209f41d54e62759cab69aceecc4618892bc3a89beb2d4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiChatModel._call_api (cognitive 42): GeminiChatModel._call_api has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e33ffae5dc9a434383195a1a857f57037ad51b03d7941e9f5f82c4530b370fc"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIChatModel._parse_completion_response (cognitive 42): OpenAIChatModel._parse_completion_response has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 9, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_chat/_model.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf969a96c1aad0712e20cb488ce67e7bfcaec1021b967639139ec3fb070c2c70"}},{"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":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcf61a6040cd3938970e688e508bd39401fa812b7b4a9daf6cbc424ff45989f"}},{"ruleId":"D2","level":"warning","message":{"text":"MoonshotChatModel._parse_stream_response (cognitive 41): MoonshotChatModel._parse_stream_response has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 11, ternaries 3 (9 pts), loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"737075e89ee710fb1c607e101ffb9cc43273880653075801b7e521d0cf6853c8"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcengineChatModel._parse_stream_response (cognitive 41): VolcengineChatModel._parse_stream_response has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 11, ternaries 3 (9 pts), loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_volcengine/_model.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"68de74a3a125f35cbcfd9323acece82dee0f2e4818c4db20d61fdf935622fea7"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._compress_context_impl (cognitive 40): Agent._compress_context_impl has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 6, error handling 3 (5 pts), loops 1 (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/agent/_agent.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c5f8beba46c5f5860b2f24c0ca5dffd2961395a12fbf406060d1d978bdf5d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent._call_model (cognitive 39): Agent._call_model has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (32 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":3393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd418fd40fd64748f1d51f90d763d2a479fabec416e7818774d317f975ebbc1"}},{"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":441}}}],"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":206}}}],"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":"DeepSeekChatModel._parse_stream_response (cognitive 38): DeepSeekChatModel._parse_stream_response has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 11, ternaries 2 (6 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1972ed829d0f520c7232b6a062eeeee53bd4f0bb1b11f869f90668aa7daa416"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIResponseModel._parse_completion_response (cognitive 38): OpenAIResponseModel._parse_completion_response has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 8, loops 3 (7 pts), ternaries 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39163b936569a07973f027ff63fd094be78755ea6ee5479ca9f698b19ba5485"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiTTSModel._parse_stream_into_async_generator (cognitive 38): GeminiTTSModel._parse_stream_into_async_generator has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 3 (6 pts), boolean chains 3 (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/tts/_gemini/_model.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd8e64af95e19193eb9e14acca85f589388cdfed22f648013176136862edb66"}},{"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":"RealtimeAgent.connect (cognitive 36): RealtimeAgent.connect has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (2 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab55afeb3f8ab35e0cc348516cea14ed226d583fd13d8b2f57d2a0de33310224"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent._on_model_event (cognitive 36): RealtimeAgent._on_model_event has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 4, ternaries 1 (2 pts), match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"42549f8bbacf7a6acb1f56220a0140df683a40890d790493b507c129af20d47d"}},{"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":"_console._ask_user (cognitive 36): _console._ask_user has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (17 pts), ternaries 3 (7 pts), loops 4 (6 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/console/_console.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a316c2b568b1d2741d63e155241c14955d04ba68b887e7d5f02865e1aedb68"}},{"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":2062}}}],"partialFingerprints":{"codehealthFindingId/v1":"405c07219d1fe5587a913bbb4cd4c99b8a0d0a46036e9b8138c1f7d51b144205"}},{"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":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dd423e25918872fa0be206ac7055b562b66f3d289e0401c81b9dc5cbbb217b"}},{"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":"_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":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a6ceee512eada5e50a6d4b0de75f915396d7f7c560052973a2ca2c98c38af8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicMultiAgentFormatter._format_agent_message (cognitive 33): AnthropicMultiAgentFormatter._format_agent_message has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"2feac0fa49bd73cea1134415c41454b3c4c8f3d2b520c80a39eb05a9cea82658"}},{"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":2935}}}],"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":"_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":"_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":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"89717bb4d4e002c564eb142ac523058cb9884e91b6b49861bb0acd44730b4e38"}},{"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":484}}}],"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":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d25d0bb2c19a8b2eda798ca837319b879861f9e1ad0d1df41fc3e39d4465662"}},{"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":194}}}],"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":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bbbcfed05f7f52fdb04577eb5f95d522fd3f1ec83baa1e6b6053c513f14d6f"}},{"ruleId":"D2","level":"warning","message":{"text":"WakeupDispatcher._dispatch_one (cognitive 29): WakeupDispatcher._dispatch_one has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 6, ternaries 3 (4 pts), error handling 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/app/_manager/_wakeup_dispatcher.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"449b8d2a52912af38b2a1cd586f228e510afc0ed8da664fec300aae8899a9b7f"}},{"ruleId":"D2","level":"warning","message":{"text":"XAIMultiAgentFormatter.format (cognitive 29): XAIMultiAgentFormatter.format has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (24 pts), loops 2 (4 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/formatter/_xai_formatter.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2384677496777a2ddcd333e945790b7ec4974323bcfaa70edd92082c2c7090f"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiRealtimeModel._parse_content (cognitive 29): GeminiRealtimeModel._parse_content has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 12, 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/realtime/_gemini/_model.py"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"988faac9d8c55415a02d24c3c50b2cc817140da3f7ae24120879a037a1e887ef"}},{"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":3116}}}],"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":"OllamaMultiAgentFormatter._format_agent_message (cognitive 28): OllamaMultiAgentFormatter._format_agent_message has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 2 (3 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6895815000a88fcfd338fc4d42453257dc09a5a8843f22b17235c13d1eb2951"}},{"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":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9fb09d89a391b087c4d50782177e6d1c3cb1bc7bbb12a6233695664df79bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"WebRTCSession._run (cognitive 27): WebRTCSession._run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 8, 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":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec80f0b72b56930d1ab64590d0b3b2345f74ac9c70feb7976fb6138542a83dc"}},{"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":"MoonshotChatModel._call_api (cognitive 27): MoonshotChatModel._call_api has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb7ee667c81436a44b366e516f118461e8bd908eadbc671c162a1e3af3a3735"}},{"ruleId":"D2","level":"warning","message":{"text":"_client_external_tool._iter_schema_nodes (cognitive 26): _client_external_tool._iter_schema_nodes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 2 (6 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_client_external_tool.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"46452ac4bc780f18fbae0dba976566efa800f9b4a29f796011bdcb2e87462124"}},{"ruleId":"D2","level":"warning","message":{"text":"_toolkit.get_toolkit (cognitive 26): _toolkit.get_toolkit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 6, ternaries 1 (3 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_toolkit.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"520d85dad4c74687a5378334b990c8d12b16ea6b3feff208f76e08617b462bff"}},{"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":"GeminiChatModel._parse_completion_response (cognitive 26): GeminiChatModel._parse_completion_response has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"081b0c3b75c2653534050316e9609701f6a586871e04d663c80a05e561b7857d"}},{"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 25): RealtimeAgent._run_tool has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 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":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd72a129c0a282332ec16da6b9db9caf33571a4072f92a4de0cc5e73e1cc07f3"}},{"ruleId":"D2","level":"warning","message":{"text":"_voice_profile.list_available_engines (cognitive 25): _voice_profile.list_available_engines has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 3 (7 pts), loops 3, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_voice_profile.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcaa2cacdbcdb21289bf030047b84ce8c9832c3ec5143a1393c8efaf50554638"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiRealtimeModel._parse (cognitive 25): GeminiRealtimeModel._parse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_gemini/_model.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab1e4438fd767b18416f28cb9fd1d54de293e79ff76802cb3ca8547e14df5db"}},{"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":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"716daa8a87e828b9f2e050ff3a83c751c1b08486b857f4d049542bd01d47c097"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolResponse.append_chunk (cognitive 24): ToolResponse.append_chunk has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_response.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b594522ce179e38438e17f86c035f6ff8ad56665d8e1c1856bc9c7216623fa1b"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiTTSModel._parse_response (cognitive 24): GeminiTTSModel._parse_response has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_gemini/_model.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe9dd3ad996315078bab7efb0d4011f5256af6233c2f8c7ebb9d25bef4da2b3"}},{"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":851}}}],"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":3657}}}],"partialFingerprints":{"codehealthFindingId/v1":"94afbfe2912ff680cfb1a697ef8a6387b6fc2029ec21fbd17ffe7d2a23321f36"}},{"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":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b2ece0baf5d8d921b269bc43542653656f7f3b9dc153d0333c087e9f7a116c"}},{"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":87}}}],"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":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b127ffbf1f893e16b5dcea2be72f67d054b7dd66dec3d337ac98d8fcc6767421"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent.send (cognitive 22): RealtimeAgent.send has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 1 (2 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"710c3670242e7ce9c00a1e794af8ac2005f4fe43029491c2e504bc432995c55a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatInputQueue._recover_pending_chat_inputs_locked (cognitive 22): ChatInputQueue._recover_pending_chat_inputs_locked has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 2 (5 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_chat_input_queue.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2dff55f6bd319f093cee02a1baa597a4765bc53ca7662a4f4fed97290765b4"}},{"ruleId":"D2","level":"warning","message":{"text":"_console.launch_console (cognitive 22): _console.launch_console has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 3 (8 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/console/_console.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"50363605c5e810a087da52fe81f752dd82415c0d6c8453e9d008064853165431"}},{"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":567}}}],"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":572}}}],"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":"RealtimeAgent.reply_stream (cognitive 21): RealtimeAgent.reply_stream has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 4, ternaries 1 (3 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7f8b846947d6b534187408e25fc10e6e3bcab5c88c798397ebb08f3374ab98"}},{"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":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8be1ea0bc688b4efb03552fd60b6d96224a353dd164e2576f04dcb3eff6ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"FormatterBase._split_agent_messages_at_hints (cognitive 21): FormatterBase._split_agent_messages_at_hints has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_formatter_base.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"8794e70d674b20a207bdb3851ee25a9376dae454355d78ece0ff3c6c89442a64"}},{"ruleId":"D2","level":"warning","message":{"text":"_word._extract_text_from_paragraph (cognitive 21): _word._extract_text_from_paragraph has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_word.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"100cf2a59f82c6662f03dc45b497a0c746105a581530a32057bc24ce4cbfb26e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAILiveModel._parse (cognitive 21): OpenAILiveModel._parse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 3, ternaries 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/realtime/_openai_live/_model.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f49a6497e9868d7802200fc719be7a1b2f2f8aea9eaf9327a3c886b84cd3a0"}},{"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":190}}}],"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":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24a725bc1aab82994d96222554a79892472e2d2ab8c24e37bf5ac1b6bc59678"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeVoiceCloningClient.create_voice (cognitive 21): DashScopeVoiceCloningClient.create_voice has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 3, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_dashscope/_voice_cloning_client.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4143eb7d54da73243b5a2dfdaf24e8e538c61996251e377f6e575eb43cd1e7"}},{"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":3919}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bab8cdacaba09b557176fa6ac6247760906b29b469c8cbfdb3af924c24362ed"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatInputQueue._claim_chat_input (cognitive 20): ChatInputQueue._claim_chat_input has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, 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/_manager/_chat_input_queue.py"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8039a122f6528fc0d5353c0234e92e8f045ec9ca28bea11454adf16fefd8b1d"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulerManager.validate_schedule (cognitive 20): SchedulerManager.validate_schedule has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 6, ternaries 3 (4 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":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93a8eaca8d43c3a04c6d8b8e4ac96a5bf1a0d998f369603d8abe4b35658df08"}},{"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":170}}}],"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":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"7755b7eb26d452fede037de8c00b69e1e54bc27d6998564b44175c53717de4ad"}},{"ruleId":"D2","level":"warning","message":{"text":"SteeringMiddleware._consume (cognitive 20): SteeringMiddleware._consume has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 5 (8 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/middleware/_steering.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b20151e5fa6770f423d66d7665f632987aab3da3d0b34e034c8f91c4d8092d"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicChatModel._parse_anthropic_completion_response (cognitive 20): AnthropicChatModel._parse_anthropic_completion_response has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (7 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":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"c41a0c95b79dbc6bf29f9bf1f1dcab65d950951c6d48331a64c6c8d01ffed964"}},{"ruleId":"D2","level":"warning","message":{"text":"DashScopeChatModel._parse_completion_response (cognitive 20): DashScopeChatModel._parse_completion_response has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a3ce648c0623e1043e6cde846ab35d7a40471e7ae49f8bf7345cfe3b8860ce"}},{"ruleId":"D2","level":"warning","message":{"text":"_model._openai_response_block_error (cognitive 20): _model._openai_response_block_error has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 2 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4e0b8a98bfe93385f7e3bac28498b0667e964c33c4e3ff5edf5c552555697c"}},{"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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79dc5dddbe7e75c7b729ab74ab0bc4f796bf2478bc3ccef09b5e46d4dd9535e"}},{"ruleId":"D2","level":"warning","message":{"text":"Glob.call (cognitive 20): Glob.call has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 4 (5 pts), boolean chains 4, 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._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":"MiniMaxTTSModel._stream (cognitive 20): MiniMaxTTSModel._stream has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 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/tts/_minimax/_model.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8c7324633e2c8d6d5bee8cfea469b32795dcf64eb3e235333f011f0df3f2ff"}},{"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":"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":172}}}],"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":"ChatModelBase.__call__ (cognitive 19): ChatModelBase.__call__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 2 (4 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_base.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4be15d7b6db852f0b0fc1788a59c0b3412236fdc1b32564b4fc2ce6b93934cc"}},{"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":300}}}],"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":"_asr.transcribe_realtime (cognitive 18): _asr.transcribe_realtime has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 6, ternaries 1 (2 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/_router/_asr.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b482d105a2981d5b131e53a2822863da2922096d8994a494062ba87086f41c4d"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeService.create_agent (cognitive 18): RealtimeService.create_agent has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (8 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_realtime.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4458fc7e32c131cdb0719790c3dfa3d7e5965d4b5ae8472899f92eace3564961"}},{"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":"_xai_formatter._xai_user_args_from_blocks (cognitive 18): _xai_formatter._xai_user_args_from_blocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_xai_formatter.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e8036657e04c941112523838f497142448adc6814e587a61de014700eb8f64"}},{"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":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"2183e6b6e8d1b7926793414895009c0fc924ead720217ede63630d64283cd52e"}},{"ruleId":"D2","level":"warning","message":{"text":"VolcengineChatModel._parse_completion_response (cognitive 18): VolcengineChatModel._parse_completion_response has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, loops 1 (2 pts), ternaries 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/model/_volcengine/_model.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93070236d34e49fc4229993d88f8376af40a9c8a2cffb335816dbf3f76f1888"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeBase.search (cognitive 18): KnowledgeBase.search has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 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":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"262c1d6ac6ceab715b8d8ef97bfad8f55df56ba7c327724919720ac861f60a79"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPTool._stream_call (cognitive 18): MCPTool._stream_call has cognitive complexity 18 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 5 (6 pts), boolean chains 2, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_adapters.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"da27c5058d670a787c966e534e4deb3794c44d103a745f88b3d02776cea9fb81"}},{"ruleId":"D2","level":"warning","message":{"text":"Bash.call (cognitive 18): Bash.call has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (16 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":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"e685a5add9e0f9d6c4a2c788c994f8787632202c12a8f19bd8daeb27c51ea31b"}},{"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":127}}}],"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":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e246ecdcefdbbc9e17c49cc8fbbcba2b5052ab4b6afed94a84845a47195afcc1"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent._sync_delegation_state (cognitive 17): RealtimeAgent._sync_delegation_state has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1baf9142103f1cdfd2b9eb939fa63ee860b1d0d0aae20c806e530283e96639"}},{"ruleId":"D2","level":"warning","message":{"text":"_realtime._create_realtime_offer (cognitive 17): _realtime._create_realtime_offer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), error handling 4, boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_realtime.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1b143a27dda223e8918d821fa2845e291e2d458045db0e8004e70c4941da9c"}},{"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":"EmbeddingModelBase.__call__ (cognitive 17): EmbeddingModelBase.__call__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), error handling 2 (4 pts), loops 2 (4 pts), boolean chains 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/embedding/_embedding_base.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5ab7d457b2130ef207aba737f04de163dd497699aad9d13743dbff91f2e1de1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgenticMemoryMiddleware._list_md_files (cognitive 17): AgenticMemoryMiddleware._list_md_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, error handling 2 (3 pts), 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/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a502aa7748b748f371d9f41ce856b846e27e0c64a225524f57334fbd1ab6a0"}},{"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":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"091648531ded3bb3c67c7a89dbcffed145440c6a7e9727442f2ca90ed798a215"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelCard.from_yaml (cognitive 17): ModelCard.from_yaml has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 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":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f712141ff15d49b65f5a79cf097a183285113c06dae301fc5c18710969260d"}},{"ruleId":"D2","level":"warning","message":{"text":"MoonshotChatModel._parse_completion_response (cognitive 17): MoonshotChatModel._parse_completion_response has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, loops 1 (2 pts), ternaries 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/model/_moonshot/_model.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"165dcf823958b4335b76a3ae4486424064d1ec363129b7b3fab4711998d89a23"}},{"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":348}}}],"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.check_permissions (cognitive 17): Bash.check_permissions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_bash.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33234dbedc9c32e2f991d323a2ebc1488abc509ac6ce03814c90059f22d1fac"}},{"ruleId":"D2","level":"warning","message":{"text":"Read._read_text_file (cognitive 17): Read._read_text_file has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_read.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e0535271cd70abd83fd6d83837faf33c227ee217c52bf72d54a1f0e9a80b75"}},{"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":638}}}],"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":2215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27ccc1b8c53628cbfbfa298ca45d592ac2a44223d07da224509de1dae78a096"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeAgent._run_tools (cognitive 16): RealtimeAgent._run_tools has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 2, error handling 1, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_realtime/_agent.py"},"region":{"startLine":2406}}}],"partialFingerprints":{"codehealthFindingId/v1":"60dee62f3f60fd64843507f75a7afe109db199dd349f89002fb1848d24550e35"}},{"ruleId":"D2","level":"warning","message":{"text":"_tts_model._validate_voice_binding (cognitive 16): _tts_model._validate_voice_binding has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_tts_model.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa2312d9914be805ab7c9eb8b77705181b6f53c0e55b206fe9b6267750bf9d6"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubMCPHub._from_remote (cognitive 16): GitHubMCPHub._from_remote has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, loops 4 (5 pts), if/else 2 (3 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/hub/_mcp/_github_hub.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef32f7c0f8378323b55cb00bbe64e57c74701da86e8ca3e0091578b6fac16cd"}},{"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":269}}}],"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":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"995fa4f25a55470fa2b06031e59242911388a9c95e465060023124427d436904"}},{"ruleId":"D2","level":"warning","message":{"text":"OllamaMultiAgentFormatter.format (cognitive 16): OllamaMultiAgentFormatter.format has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 2 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bb1cbba655161d958848210646424be62d64d3bc9447c1369c3dbab9fb7d23"}},{"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":574}}}],"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":322}}}],"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":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d9346ec73936de66088fdb66478aed2a5f7db2d15b1ed5a8c55a15732175cc"}},{"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":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba98216c2254b91f52f75a251adb40a7d6c24461e6c5f2c6e346211e53ced7be"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepSeekChatModel._parse_completion_response (cognitive 16): DeepSeekChatModel._parse_completion_response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, 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/_deepseek/_model.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b63a06c86dc66e4a30efffb59b6a0ae454c67b813f6f9a4b0a6da492cd3f50"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiChatModel._prepare_gemini_4_config (cognitive 16): GeminiChatModel._prepare_gemini_4_config has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_gemini/_model.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e4efc776de1cb5cee44ae9b3409e0bcdd497b923f889f975a486d0ad902858"}},{"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":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1d845e36f91ace5909af3bb37426c53c09f4479c0b96bf81d3510c9e231e52"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamPipeline._run_assignments (cognitive 16): TeamPipeline._run_assignments has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 2 (5 pts), error handling 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/pipeline/_team_pipeline.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b47bdc3ba1458d27a2440fe556d7479202829df88d02a9affcce8e0f3dce053"}},{"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":"_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 2407 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1907 over it, 4.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e6208b578af1ea73b6d7c83738a4ea80ef288655d2afa9935e76b0334a20a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _realtime/_agent.py: FileTooLong \u2014 1960 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1460 over it, 3.92\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: storage/_redis_storage.py: FileTooLong \u2014 1630 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1130 over it, 3.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"991cfa02ee35e6229646e7e7edbd11eb54648e1e1c273fd58f8ab5aacf9430b2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RedisStorage: TooManyMethods \u2014 87 methods. The bar is 30 methods; this is 57 over it, 2.90\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":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8e24c89c6b21ee7b6451514ab5d5c97ef7e84b302d7c8be33d7fe91497c51e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RealtimeAgent: TooManyMethods \u2014 75 methods. The bar is 30 methods; this is 45 over it, 2.50\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":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5d2ca455547e93a798dd8d8997c68f2de8657ab0a641ba45f18d38bc12cd51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _service/_chat.py: FileTooLong \u2014 1062 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 562 over it, 2.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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: _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 818 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 318 over it, 1.64\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 49 methods. The bar is 30 methods; this is 19 over it, 1.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/message_bus/_base.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef02e8d53becd752a20591952bc0d8dd5a3becfa82ee8322651354ee72c2d66f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Agent: 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/agent/_agent.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d640841299bff886c5774cfce190d73ce8a3897cae67b9bf076f0d0dfc74040d"}},{"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":"FileTooLong: app/_bus_ops.py: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 207 over it, 1.41\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_bus_ops.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2346226ea9c10e1af48a8027a7b3551b95933bec2a55eb70e53c6a38989ee67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _manager/_chat_input_queue.py: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 198 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_chat_input_queue.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee48950bb94f6bd76171d4ff3e90c8e82c637591fa5e2b7db258a7023995d5d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MessageBusKeys: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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/_keys.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"97342be07de1c826bc22a48dc30b6620e1cc265c68f810bb1e5d8dd6cc8f9ab9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _agentic_memory/_middleware.py: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 114 over it, 1.23\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_agentic_memory/_middleware.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12170b7c39e73197924627d293a7168ffb62fef318c0699128c5301ec74241ec"}},{"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":"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":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"753a16516777c8e93a5aa37efea146090f4310670ddd1baa45bb89a48d1aa04f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workspace/_local_workspace.py: FileTooLong \u2014 559 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 59 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 551 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 51 over it, 1.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_rag.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f349cffc8be246d7484090176b3587f613b40d94cce0e63cd3e0e638335ed7c9"}},{"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: _builtin/_bash_parser.py: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 47 over it, 1.09\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":"FileTooLong: _router/_session.py: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 28 over it, 1.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_session.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"350bdff837b8ccab02a6831dddcce959b4c518e24045a88ef792074756ac461d"}},{"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":"TooManyMethods: RedisMessageBus: 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/message_bus/_redis_message_bus.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"816840c878f2b09a23264c9d67b3f7dbcc3788b27570e101cd65e416feaef36c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _gemini/_model.py: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4 over it, 1.01\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/model/_gemini/_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afb1401157e6dc71be55d9103c756c14e7fd3d811cc18d4bd9e02e3c1f6fba1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 41 shared lines): src/agentscope/model/_dashscope/_model.py:316-469 | src/agentscope/model/_deepseek/_model.py:253-363 | src/agentscope/model/_moonshot/_model.py:319-432 | src/agentscope/model/_openai_chat/_model.py:346-512 | src/agentscope/model/_volcengine/_model.py:290-400 \u2014 These 5 members are variants of one another: a block of 41 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":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46d68ffbd13fc0525078aa81ba7c04ba1272609f9d15e375d32b4c612bb2a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 28 shared lines): src/agentscope/model/_dashscope/_model.py:476-541 | src/agentscope/model/_deepseek/_model.py:370-434 | src/agentscope/model/_moonshot/_model.py:439-506 | src/agentscope/model/_volcengine/_model.py:407-469 \u2014 These 4 members are variants of one another: a block of 28 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 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":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6b66f696f60f8d2155dc88e359b1b815cb1cd2c08a02b9144d25c7b5d83f02"}},{"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:130-330 \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:280-460 | src/agentscope/formatter/_openai_formatter.py:308-476 \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":280}}}],"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:158-347 \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 (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:283-344 | 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":"41d23875e949c541e49d6c61da697535e73b03cc4cf56829e5e4475c40e795bf"}},{"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:478-492 | 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":"5961d0f958fdf4b890127117962b6f4cee83a4f6b2291b6113527966b5fadee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:31-318 | src/agentscope/app/storage/_sql/_alembic/versions/0002_mcps_skills.py:26-49 | src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:24-75 | src/agentscope/app/storage/_sql/_alembic/versions/0005_voice_profiles.py:21-37 \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/app/storage/_sql/_alembic/versions/0001_initial.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fa4d329d30eb490ad65bfdee95fe7209fb0fd02310f31328f800c2d7b0de12"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/agentscope/formatter/_dashscope_formatter.py:572-633 | src/agentscope/formatter/_moonshot_formatter.py:471-506 | src/agentscope/formatter/_openai_formatter.py:577-639 | src/agentscope/formatter/_openai_response_formatter.py:520-565 \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":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dec77a955a5432a809d34a11af1d08ced64646b6c5295130e6ebfa1f2364245"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/agentscope/realtime/_dashscope/_model.py:296-310 | src/agentscope/realtime/_gemini/_model.py:412-426 | 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":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d59ea7fb30209128f894ebff1f004d4de621d54f743a5491b9c0065a486892"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (124 corresponding lines): src/agentscope/tts/_dashscope/_cosyvoice_utils.py:42-165 | src/agentscope/tts/_dashscope/_realtime_model.py:31-181 \u2014 These two members are one piece of code written twice and then edited apart: 124 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/tts/_dashscope/_cosyvoice_utils.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"424518761e3dd9c474a5992aa7f1257a4968b43860f717c499a6ff36d1d32df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (92 corresponding lines): src/agentscope/realtime/_dashscope/_model.py:349-465 | src/agentscope/realtime/_xai/_model.py:288-379 \u2014 These two members are one piece of code written twice and then edited apart: 92 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/realtime/_dashscope/_model.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6bb63ba93b9aaead2ed935cde929c69078ef992c174a06e221dac8fb3dbffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): src/agentscope/app/channel/_dingtalk/_channel.py:306-397 | src/agentscope/app/channel/_feishu/_channel.py:659-734 \u2014 These two members are one piece of code written twice and then edited apart: 76 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_channel.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29ac7cc0b1657adc6f33586e1c0d36f9d1757de2f094ba6855f019387902786"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): src/agentscope/embedding/_dashscope/_model.py:331-409 | src/agentscope/embedding/_dashscope/_model.py:420-500 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_dashscope/_model.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2230475169f86a269b99015527c63e9e8580d7a14f09002fc44d7b79614936"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): src/agentscope/model/_model_card.py:91-177 | src/agentscope/tts/_tts_model_card.py:77-144 \u2014 These two members are one piece of code written twice and then edited apart: 68 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/model/_model_card.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b73b3ead0d9455b7a8f115428c8f10ca85ce8beae2f6fc6a0dfcee19a06765b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): src/agentscope/model/_deepseek/_model.py:173-246 | src/agentscope/model/_volcengine/_model.py:210-283 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/model/_deepseek/_model.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efda483e822edce73535986946d05c3b4f0d34d41272b77635da3cbafb43660"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (80 corresponding lines): src/agentscope/app/middleware/_sop_step_middleware.py:90-169 | src/agentscope/app/middleware/_team_member_middleware.py:119-220 \u2014 These two members are one piece of code written twice and then edited apart: 80 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/app/middleware/_sop_step_middleware.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8478fa440013e6106a9098fb9417d7c30b4f093734e6a912614370550262f757"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): src/agentscope/app/storage/_redis_storage.py:898-967 | src/agentscope/app/storage/_redis_storage.py:1056-1143 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/app/storage/_redis_storage.py"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13c1a1541c8a60513b9cc618fbe08f455a5800fddf3a095f44627188bcdeb31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): src/agentscope/embedding/_gemini/_model.py:318-388 | src/agentscope/embedding/_gemini/_model.py:399-491 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/embedding/_gemini/_model.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f25b8c2242d8a0c660bfdb02291da02b92e39715f1b4be48c18ba0e2f02a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): src/agentscope/tts/_dashscope/_model.py:194-266 | src/agentscope/tts/_gemini/_model.py:349-435 \u2014 These two members are one piece of code written twice and then edited apart: 73 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/tts/_dashscope/_model.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"53356daedc30e4490b326d4a83b314fd3a9538cb14bd61c83a8435037e9d2553"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): src/agentscope/app/storage/_redis_storage.py:445-501 | src/agentscope/app/storage/_redis_storage.py:584-632 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f273cf9a531ff90886e52f1ea3b67f8b460f7d3bc4a60d3afa5be8ec9666181"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/agentscope/app/_router/_hub.py:147-203 | src/agentscope/app/_router/_hub.py:247-289 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_hub.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b201faa1767deb671fcb9bf109573879adb4349d89992271126dd2407a4666a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): src/agentscope/embedding/_dashscope/_model.py:241-294 | src/agentscope/embedding/_gemini/_model.py:229-282 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_dashscope/_model.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"08be4403ea5e1c49fc30eb0a6626059c4edc1e626f4e07c1965a97dd6ce24ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py:130-170 | src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py:342-383 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae8bd3dd93bb094baf86f85c03f4eb72feee92c3133328dae8d7f6be69fe704"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/agentscope/workspace/_base.py:650-698 | src/agentscope/workspace/_sandboxed_base.py:273-316 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_base.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d2323e2853cec2e5d66d7cc02f47ffd0352b843a99c3b05f30f65b0cfdacfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): src/agentscope/app/channel/worker/__init__.py:74-137 | src/agentscope/app/rag/index_worker/__init__.py:94-203 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/worker/__init__.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa74ba623aa4a1593dfcee426666dbd88f37269f0de670a7fec3a92241b7bac8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): src/agentscope/model/_ollama/_model.py:143-195 | src/agentscope/model/_openai_response/_model.py:329-395 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_ollama/_model.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5b7ab32745fe7f47fa8472734830bfaa343f93fd24478b18c015a41b9cf9d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/agentscope/workspace/_local_workspace.py:693-733 | src/agentscope/workspace/_sandboxed_base.py:325-372 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_local_workspace.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"7530a2e9686d01a48f40245ce3d123305ca3ef023dbcc947b3773be74bb58af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/agentscope/app/storage/_redis_storage.py:2385-2433 | src/agentscope/app/storage/_redis_storage.py:2484-2512 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":2385}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ed4e6c2ffebae2786730f2e4e299732713f0aa4d277d72fd4f55b0ac8e713e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/agentscope/agent/_agent.py:1689-1723 | src/agentscope/agent/_agent.py:2780-2828 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_agent.py"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1994fd85193ab0053321cfce834cff14ef427dd6501f38999c0f4d7093fe384"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): src/agentscope/app/middleware/_sop_step_middleware.py:37-82 | src/agentscope/app/middleware/_team_member_middleware.py:51-111 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/middleware/_sop_step_middleware.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"902c28d4382e76d785aa0ceaccb89ab568a1f07ebf952fc0bc4109323bfcaebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (90 corresponding lines): src/agentscope/permission/_engine.py:400-489 | src/agentscope/permission/_engine.py:496-591 \u2014 These two members are one piece of code written twice and then edited apart: 90 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/permission/_engine.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a661bf445a2e9f6ef21b41a91385d8885d6698e4a46a7d9e881699f2cef7d43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 63\u002B corresponding lines): src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:66-128 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:84-150 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:79-158 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 63 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_daytona_workspace_manager.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"432fafd16a9422a8d06712ee0f45d26d2e38ee10abc680081e9b4f0bc7aa28b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 34\u002B corresponding lines): src/agentscope/formatter/_dashscope_formatter.py:490-539 | src/agentscope/formatter/_openai_formatter.py:511-544 | src/agentscope/formatter/_volcengine_formatter.py:379-412 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7f642102523601f9665d0377e249bfc35ce2102b646901cdaf4e85d259030e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/agentscope/workspace/_local_workspace.py:742-772 | src/agentscope/workspace/_sandboxed_base.py:381-418 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_local_workspace.py"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"948d7ff7478f31ed172654f621a7eaea58225321ff1c806442da40a4bc4130a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): src/agentscope/workspace/_daytona/_daytona_workspace.py:100-169 | src/agentscope/workspace/_e2b/_e2b_workspace.py:95-152 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one 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/workspace/_daytona/_daytona_workspace.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"50956eb8ac73b64d7482baab6b1026a414c2be126afe9cf1f7b273160d99f496"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): src/agentscope/embedding/_dashscope/_model.py:188-235 | src/agentscope/embedding/_gemini/_model.py:182-223 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_dashscope/_model.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7e0e5d21788a9c43381a949d6f92489cd50d5d5f639e79ae8e61e0f4811f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 33\u002B corresponding lines): src/agentscope/formatter/_anthropic_formatter.py:445-477 | src/agentscope/formatter/_deepseek_formatter.py:274-306 | src/agentscope/formatter/_gemini_formatter.py:384-416 | src/agentscope/formatter/_moonshot_formatter.py:392-438 | src/agentscope/formatter/_ollama_formatter.py:412-449 | src/agentscope/formatter/_openai_response_formatter.py:439-478 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae35fdf6a184e594fc7592141a184af76ee4300346a5ad3bd372f80e58c86472"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/agentscope/formatter/_ollama_formatter.py:73-100 | src/agentscope/formatter/_openai_formatter.py:242-282 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a0f1d730334a7327269db866838ecbbf4d91d92b44188aa7cfeca80b7660ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/agentscope/realtime/_openai/_model.py:108-137 | src/agentscope/realtime/_xai/_model.py:100-122 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_openai/_model.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"567de62b9852bced3c643fc8617f08629deddffaae344c29d3edfa527e230f42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): src/agentscope/tts/_openai/_voice_cloning_client.py:70-100 | src/agentscope/tts/_openai/_voice_cloning_client.py:110-145 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_openai/_voice_cloning_client.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1117fe844ad04d692810ccdcadae0dd7084f50e6f424b9c013f4d764cb8513"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): src/agentscope/formatter/_dashscope_formatter.py:68-118 | src/agentscope/formatter/_openai_formatter.py:63-109 | src/agentscope/formatter/_volcengine_formatter.py:44-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c297c0d1e1c627be34c2a6140633429096772832304f11eb35979e88584f62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/agentscope/app/channel/_feishu/_channel.py:917-939 | src/agentscope/app/channel/_feishu/_channel.py:1074-1105 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ab25426aa77bbfc99f65d95b884ac410a32c813de1652786118ef92f9a021b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): src/agentscope/workspace/_local_workspace.py:339-387 | src/agentscope/workspace/_local_workspace.py:634-684 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_local_workspace.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e25ffc2359e64317a10078e3c66d300c3af714d58bb107a1d1135784f9be66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): src/agentscope/app/channel/_feishu/_channel.py:1118-1157 | src/agentscope/app/channel/_feishu/_channel.py:1220-1254 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e6031b1932a4aa5cb8341a13e3939cda174006969b461e5168142bc60e265a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 38\u002B corresponding lines): src/agentscope/formatter/_dashscope_formatter.py:125-162 | src/agentscope/formatter/_dashscope_formatter.py:169-208 | src/agentscope/formatter/_dashscope_formatter.py:215-262 | src/agentscope/formatter/_gemini_formatter.py:70-111 | src/agentscope/formatter/_openai_formatter.py:116-162 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"110e8d5f5ea8553053d05ac933ad1d4990fcd95d5502c8e629222291ad4b01fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:65-113 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:81-146 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"681512a18d5cb5a05ea811aea6a1253e59a32ec588d5847ed277ea67366e2084"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/agentscope/app/storage/_redis_storage.py:2518-2554 | src/agentscope/app/storage/_redis_storage.py:2560-2580 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":2518}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f60da0eeb9fd1e0d6725491df65c3c4f0aae8c81adfae6f9c7ddf5069d88e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): src/agentscope/embedding/_embedding_base.py:448-490 | src/agentscope/model/_base.py:189-232 | src/agentscope/tts/_tts_base.py:155-194 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_embedding_base.py"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"185fe0e303bf5baea8dfc33cc8f144855e6dd4b01432b68816bf4312d71ea216"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): src/agentscope/app/storage/_sql/_storage.py:2093-2120 | src/agentscope/app/storage/_sql/_storage.py:2131-2150 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":2093}}}],"partialFingerprints":{"codehealthFindingId/v1":"14aa5339e5dd67eca6cbdc32b01a3e1fe5f2f4019f07db3a59bd73d27b9e652b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/agentscope/workspace/_docker/_docker_backend.py:173-193 | src/agentscope/workspace/_k8s/_k8s_backend.py:261-298 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_docker/_docker_backend.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fae08f09a6e567dfac4e35a3c5b9a217de4a96ba07c412fb75c4be830c1d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/agentscope/app/storage/_redis_storage.py:2039-2076 | src/agentscope/app/storage/_redis_storage.py:2236-2283 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"7009d13f8050de41ab4ae8d680e11539a96e75e26407afae6630baa8057537d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): src/agentscope/realtime/_dashscope/_model.py:317-338 | src/agentscope/realtime/_gemini/_model.py:429-448 | src/agentscope/realtime/_openai/_model.py:301-317 | src/agentscope/realtime/_xai/_model.py:268-284 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeb63038b450f7e5040ed70518a900e56540118702f58d808dfe62e008e94f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 51\u002B corresponding lines): src/agentscope/model/_anthropic/_model.py:136-186 | src/agentscope/model/_dashscope/_model.py:135-185 | src/agentscope/model/_deepseek/_model.py:94-144 | src/agentscope/model/_moonshot/_model.py:113-164 | src/agentscope/model/_openai_chat/_model.py:140-199 | src/agentscope/model/_openai_response/_model.py:231-284 | src/agentscope/model/_volcengine/_model.py:98-149 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 51 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"032c7d57205f8d1132466516f92feaae10f2cfc4dea75346133fcc2b6fc4c557"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): src/agentscope/model/_model_response.py:90-121 | src/agentscope/model/_model_response.py:130-164 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_model_response.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6ef27ead73e06d82de5149d16fed8aa70dc9ab36d0e7f7d4418198b3e584bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/agentscope/workspace/_k8s/_k8s_workspace.py:331-348 | src/agentscope/workspace/_k8s/_k8s_workspace.py:570-588 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_k8s/_k8s_workspace.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb8d9f1316d0f19953f0482d97952fd6a5f79e350d5184f0e38a2fc044b93ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): src/agentscope/app/storage/_redis_storage.py:550-577 | src/agentscope/app/storage/_redis_storage.py:691-721 | src/agentscope/app/storage/_redis_storage.py:1673-1690 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f960d0427510155fe2336d30c326fc69e0140b8153700e07b3ad90f9f5610a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/agentscope/realtime/_dashscope/_audio_model.py:231-258 | src/agentscope/realtime/_openai/_model.py:231-281 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_audio_model.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8b54fed43ef018f0872c1903d8ad99fe7ae97278d6a1d8055cb84721d997f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/agentscope/app/storage/_sql/_storage.py:1188-1202 | src/agentscope/app/storage/_sql/_storage.py:1295-1307 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d82f4eec87886829f31e009580ddf39ea7f3b1c638ee089662ebb9dd10744c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): src/agentscope/model/_moonshot/_model.py:513-550 | src/agentscope/model/_openai_chat/_model.py:645-684 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"47aa44a18d4de8ffc3691d036248747bcfbf01e4c2a54050c8f46f2c5e5ff055"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): src/agentscope/embedding/_dashscope/_model.py:121-167 | src/agentscope/embedding/_gemini/_model.py:118-171 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/embedding/_dashscope/_model.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9ad3253be12740233e98174cf0a5b8d3349250e5013ccf0f534ee336ee45f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 46\u002B corresponding lines): src/agentscope/app/_router/_chat.py:157-203 | src/agentscope/app/_router/_chat.py:221-269 | src/agentscope/app/_router/_chat.py:287-336 | src/agentscope/app/_router/_chat.py:361-406 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 46 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_chat.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23a245b7ccb90cab8e6ca86a898d5b2d98e5c8ef44f7c1b4f9c87b0897ece56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/agentscope/app/storage/_redis_storage.py:1202-1216 | src/agentscope/app/storage/_redis_storage.py:1331-1345 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d86a34f3793006e1e49edd54a85112ddc5cf9aaf1e083baa76bbee2dc8119e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/agentscope/app/storage/_redis_storage.py:1877-1905 | src/agentscope/app/storage/_redis_storage.py:2107-2139 | src/agentscope/app/storage/_redis_storage.py:2635-2654 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"3742840fcc120212aadf79db947e2b06d0466f19debee4ddecb687f65a322967"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/agentscope/tui/_ask_user.py:196-209 | src/agentscope/tui/_chat.py:194-205 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tui/_ask_user.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d229ad769906ff9a122b7acc60ac88ab835658fb79479f0536a934b6d2fbe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): src/agentscope/tts/_dashscope/_cosyvoice_model.py:72-113 | src/agentscope/tts/_dashscope/_realtime_model.py:220-256 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_dashscope/_cosyvoice_model.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0fa5400cf7d7163544dd3a0f82aa9bb7ca1855447d50c8583e817f492c7bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): src/agentscope/app/storage/_sql/_storage.py:1314-1332 | src/agentscope/app/storage/_sql/_storage.py:1375-1393 | src/agentscope/app/storage/_sql/_storage.py:1400-1433 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"29549c371089977bdbf5e22ded6a6e6eec87efb893662013583ad27ff2cdb3a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/agentscope/app/_router/_schema/_hub_mcp.py:78-102 | src/agentscope/app/_router/_schema/_hub_skill.py:53-79 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_schema/_hub_mcp.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"478bd7eddeaf7119400dca8765065730f1fa791339e316125ec3bb40be225609"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/agentscope/app/channel/_feishu/_channel.py:462-479 | src/agentscope/app/channel/_feishu/_channel.py:501-525 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed86f0a7afcdf8920284356df5cc847d80236d12b60da03735b8b9fbbea089f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 18\u002B corresponding lines): src/agentscope/app/storage/_redis_storage.py:372-400 | src/agentscope/app/storage/_redis_storage.py:504-525 | src/agentscope/app/storage/_redis_storage.py:635-656 | src/agentscope/app/storage/_redis_storage.py:755-788 | src/agentscope/app/storage/_redis_storage.py:999-1031 | src/agentscope/app/storage/_redis_storage.py:1150-1169 | src/agentscope/app/storage/_redis_storage.py:1176-1195 | src/agentscope/app/storage/_redis_storage.py:1235-1252 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c475621d39c4c5f824a7501de68e970ef00fe852509a0a1177c96c30eec7e2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/agentscope/classifier/_jev/_model.py:130-170 | src/agentscope/classifier/_openai/_model.py:184-224 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/classifier/_jev/_model.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"3272e02f10e015e8d347365036bff6c2ba0b427cd01b33d4ee43e1aaf4fb3447"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:154-175 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:180-209 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:167-197 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_daytona_workspace_manager.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab3e0de346237acf6abfb4cb57c238452682d8a128ea99fa1f70b18d31780b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py:243-281 | src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py:300-332 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5affe1e52f025932c4d6af8ffabb3df56b3660e8d7d8409f6c0b440061bc3c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/agentscope/app/storage/_redis_storage.py:976-992 | src/agentscope/app/storage/_redis_storage.py:1913-1944 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea8122f2b1f63f10ca56126cf8d87be7b8e2c0113c30f3bee4f6403f0186ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/agentscope/app/channel/_dingtalk/_tools/_send_file.py:38-64 | src/agentscope/app/channel/_dingtalk/_tools/_send_image.py:37-63 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_tools/_send_file.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc8533e91be75f9627ea3a9b641953c126574173e02100e04988c108a133038"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/agentscope/app/_service/_access.py:415-435 | src/agentscope/app/_service/_access.py:459-478 | src/agentscope/app/_service/_access.py:485-510 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_access.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bbd4f8906ea76ad9894d4a7b5707bcad045013402773cd14bd94d3cf0471db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/agentscope/permission/_engine.py:699-719 | src/agentscope/permission/_engine.py:726-746 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/permission/_engine.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f4631dfa1f84e38c8c454bdd25573524e3f495d6d7983fceed9ab4a8249f8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/agentscope/tui/_chat.py:474-485 | src/agentscope/tui/_launcher.py:68-77 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tui/_chat.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"83877721f32545de1875684495313f52f6a95f065982aee7561ef944c8fef449"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/agentscope/realtime/_openai/_model.py:78-96 | src/agentscope/realtime/_xai/_model.py:70-88 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_openai/_model.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1851d1a1e3a786db4cab4c64d67ad0bc7896998abb9286ba00f13dc35fd2a97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/agentscope/app/_manager/_scheduler/_scheduler_manager.py:515-537 | src/agentscope/app/channel/_dispatcher.py:188-202 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_scheduler/_scheduler_manager.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd88fe6313cd96db71f605070892c02efd10ebec05acaf12f56156bc8ca45226"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): src/agentscope/app/storage/_redis_storage.py:728-752 | src/agentscope/app/storage/_redis_storage.py:1821-1846 | src/agentscope/app/storage/_redis_storage.py:2591-2613 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"7042151ffca676e3899cf0b414743a758c739c4d39122108c7e58487278be9d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): src/agentscope/app/_manager/_cancel_dispatcher.py:134-155 | src/agentscope/app/_manager/_cancel_dispatcher.py:202-230 | src/agentscope/app/_manager/_cancel_dispatcher.py:237-257 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_manager/_cancel_dispatcher.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"048785a9fc0a6c7e8d2ba50fd99a97e14002964fa39922e857fd409497925abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): src/agentscope/app/message_bus/_redis_message_bus.py:293-322 | src/agentscope/app/message_bus/_redis_message_bus.py:329-347 | src/agentscope/app/message_bus/_redis_message_bus.py:439-467 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/message_bus/_redis_message_bus.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd462903830f1ea4608478f781eca20b3515bdb0ecf784c963321261ed4426e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/agentscope/app/storage/_redis_storage.py:421-442 | src/agentscope/app/storage/_redis_storage.py:2661-2673 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_redis_storage.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd69582a06f15ceb50ced769e4e1a8f3ffed14ef0efb958bfe6309eeb6bdbb91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/agentscope/app/storage/_sql/_storage.py:844-856 | src/agentscope/app/storage/_sql/_storage.py:920-932 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fba393ad9d3cd570bb183750c46b41bb161cde2b9e1e575763aa262aa3f29ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/agentscope/asr/_dashscope/_realtime_model.py:24-29 | src/agentscope/realtime/_dashscope/_model.py:23-28 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/asr/_dashscope/_realtime_model.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3485aab1db272fcf211b68acd091cfe5e132d22cc350b17c5c8a5b9bf1f6747"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/agentscope/app/channel/_feishu/_channel.py:1010-1037 | src/agentscope/app/channel/_feishu/_channel.py:1045-1071 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_feishu/_channel.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbf6fe678feb6285cc2217522a69eeb261bb53b04d32df3ed53ad03991503aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/agentscope/app/channel/_feishu/_tools/_send_file.py:56-78 | src/agentscope/app/channel/_feishu/_tools/_send_image.py:50-71 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_feishu/_tools/_send_file.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"739a508831f7f2eb6589226d3576b8ed7b2994f4fe95e79cd6cf6687d1733c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/agentscope/app/storage/_sql/_storage.py:1273-1286 | src/agentscope/app/storage/_sql/_storage.py:2159-2179 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9a88845612d77dae09848db81da0d23e4c90e85a9a0b4e30ba1ea5679bc19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 16\u002B corresponding lines): src/agentscope/app/storage/_sql/_storage.py:787-802 | src/agentscope/app/storage/_sql/_storage.py:1465-1480 | src/agentscope/app/storage/_sql/_storage.py:1581-1605 | src/agentscope/app/storage/_sql/_storage.py:1930-1945 | src/agentscope/app/storage/_sql/_storage.py:2007-2024 | src/agentscope/app/storage/_sql/_storage.py:2211-2228 | src/agentscope/app/storage/_sql/_storage.py:2305-2320 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"6902a1541424452d329bcf06060aba3058c64649a15b28e74f6bd966af847f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): src/agentscope/app/storage/_sql/_storage.py:859-872 | src/agentscope/app/storage/_sql/_storage.py:935-948 | src/agentscope/app/storage/_sql/_storage.py:1080-1093 | src/agentscope/app/storage/_sql/_storage.py:1869-1882 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bd48affd64daa1194e70e002ad1c1259b766957cede23783d2198f8a6494cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): src/agentscope/app/channel/_tools/_list_wiki_nodes.py:50-87 | src/agentscope/app/channel/_tools/_list_wiki_spaces.py:45-80 | src/agentscope/app/channel/_tools/_read_wiki_document.py:49-95 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_tools/_list_wiki_nodes.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa55c3e215abcdc8d61d832df084e6323651a36aa6e0e54fa28192ff92614a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/agentscope/console/_renderer.py:338-347 | src/agentscope/tui/_messages.py:80-90 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/console/_renderer.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"c799dcc95d445a3849b4bc9dfed6396c092eadc21ca79a700fe1ee033a536de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): src/agentscope/app/_router/_asr.py:66-88 | src/agentscope/app/_router/_embedding_model.py:26-50 | src/agentscope/app/_router/_realtime.py:52-61 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_asr.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3340fdd229de588adbbd29a5e3e2657a5a52b9ceb7a6429e6fef84b4c3d967ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): src/agentscope/middleware/_longterm_memory/_mem0/_middleware.py:643-666 | src/agentscope/middleware/_longterm_memory/_reme/_middleware.py:540-562 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/middleware/_longterm_memory/_mem0/_middleware.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"b996fc6d90b87e3860e5215299d16d0b8e8a7abba6799f535ef0c36c7e7716ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/agentscope/app/_service/_knowledge_base.py:535-574 | src/agentscope/app/storage/_redis_storage.py:2304-2322 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_knowledge_base.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"635bf0d2779bd30214344ed1e72d97fc1da009f4b35f019d892e946eecb39df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): src/agentscope/app/_service/_knowledge_base.py:309-326 | src/agentscope/app/_service/_knowledge_base.py:582-615 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_knowledge_base.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee6813b3678e412d6d85b6f8fe855a066e36abdc47261041de9b13bf2516b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): src/agentscope/app/storage/_sql/_storage.py:887-899 | src/agentscope/app/storage/_sql/_storage.py:967-979 | src/agentscope/app/storage/_sql/_storage.py:1737-1752 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"869f8ee103e434639bd13a2c773447e3f190a8d20ae506e29aa4f30e07420d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/agentscope/tool/_builtin/_meta.py:61-77 | src/agentscope/tool/_toolkit.py:622-634 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tool/_builtin/_meta.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6581dd5e1dceff578d6fce5b49e8f2a8769373f9029cd77ab81bf0db9785ad6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/agentscope/formatter/_ollama_formatter.py:36-69 | src/agentscope/formatter/_gemini_formatter.py:37-63 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_ollama_formatter.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aeb36600e356c9ab5bc31a65d0f28c2d85b58c75d0a674ef93f31b4685111d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/agentscope/app/storage/_sql/_storage.py:1717-1729 | src/agentscope/app/storage/_sql/_storage.py:2032-2045 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":1717}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5f76be2617bc223d28db6be279e41d0c535a5ffe263adf0d4a850b272c1be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/agentscope/app/channel/_dingtalk/_tools/_list_users.py:54-76 | src/agentscope/app/channel/_feishu/_tools/_list_chat_members.py:37-53 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_tools/_list_users.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a613b38b317e8e40800229b3c503e5fb8ca4c246838b7a8bac3ba630e3777dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/agentscope/console/_renderer.py:54-60 | src/agentscope/tui/_messages.py:61-66 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/console/_renderer.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f79413f7579e144105f9a16b878edad9f8957152e523ef1876bf55f8496f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/agentscope/agent/_a2a_agent.py:306-322 | src/agentscope/agent/_agent.py:333-370 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/agent/_a2a_agent.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"684bea56dcc45f8a4566fd3ab9aca34ced42b100c56e1b82a7673f718012ca9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/agentscope/app/channel/_dingtalk/_tools/_base.py:69-88 | src/agentscope/app/channel/_feishu/_tools/_base.py:64-79 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/channel/_dingtalk/_tools/_base.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f0f89a64ce148b6fefb31090f91a5845df16b01e5a0e7fad89ea7b775e39a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/agentscope/app/hub/_mcp/_github_hub.py:122-145 | src/agentscope/app/hub/_skill/_claw_hub.py:101-130 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/hub/_mcp/_github_hub.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b1533d2666871c104a6bc133fbfb734d9c0dbf03c0f0a273cbb7ec43bdbc48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/agentscope/app/_bus_ops.py:187-208 | src/agentscope/app/message_bus/_base.py:737-745 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_bus_ops.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7e1af3728e0949a81235a6e02b9ac49ea80285399516269b5c58ec3486fe8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/agentscope/app/_router/_background_task.py:71-98 | src/agentscope/app/_router/_session.py:732-774 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_background_task.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec060da3a00541e3b99941b0ff572ff87fb056ac2a43f5eb23488cf462b9eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): src/agentscope/rag/_parser/_excel.py:253-284 | src/agentscope/rag/_parser/_ppt.py:168-207 | src/agentscope/rag/_parser/_word.py:363-392 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_parser/_excel.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbc4a9d1cf7668675386ec605e5afcc336b3879606f401ac8959bcf5e72f767"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): src/agentscope/app/_router/_agent.py:316-344 | src/agentscope/app/_router/_session.py:405-432 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_agent.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"034c4694489fc329c3dbd5601b86391af472eba63db429424708ca42db6e016e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py:184-194 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:357-382 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:348-377 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/workspace_manager/_bubblewrap_workspace_manager.py"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f807af8ba447e3f5038a6ec360900305bf4e0bd08226c1ff78279948b2710580"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/agentscope/tts/_dashscope/_cosyvoice_utils.py:29-38 | src/agentscope/tts/_minimax/_model.py:336-345 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_dashscope/_cosyvoice_utils.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c7a6c78ca2b8d568e3646ba9613c3fa939dab3c679aeb72b34c36e90c30cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/agentscope/workspace/_daytona/_daytona_backend.py:154-167 | src/agentscope/workspace/_e2b/_e2b_backend.py:150-163 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_daytona/_daytona_backend.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5a530d073ec30ae4bb19e0292c0d6712c80d9dffaba8e8cb068a8824030683"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): src/agentscope/model/_dashscope/_model.py:207-219 | src/agentscope/model/_moonshot/_model.py:186-196 | src/agentscope/model/_openai_chat/_model.py:221-230 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d729b5c64c949cc25642f111cd0f4a032f57141f17d9234e760c2603d9498c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/agentscope/rag/_vdb/_elasticsearch.py:392-394 | src/agentscope/rag/_vdb/_milvus_lite.py:272-288 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/rag/_vdb/_elasticsearch.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c74bfac43aa3d5c0b56937565f2027bfcfd194171ba3746c61b3e04be417fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/agentscope/tts/_dashscope/_cosyvoice_model.py:240-249 | src/agentscope/tts/_dashscope/_realtime_model.py:296-304 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_dashscope/_cosyvoice_model.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4621509f4359da1f7d2bfce6f9eaf2a725e8ae315ea28395f63d92a8cd38e046"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/agentscope/app/_service/_index_task_consumer.py:206-216 | src/agentscope/app/_service/_webrtc_session.py:128-137 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_service/_index_task_consumer.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5051037556c67fd6f34bbcb3cb95fe872763ca018d249328e3299d1108260b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/agentscope/formatter/_anthropic_formatter.py:579-593 | src/agentscope/formatter/_ollama_formatter.py:555-568 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_anthropic_formatter.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24e8e119d9199d8e9a354f9a9dfb32f6def92dc22c6ca9f246b0f3595eed825"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/agentscope/tui/_ask_user.py:39-42 | src/agentscope/tui/_chat.py:70-73 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tui/_ask_user.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8883364e7d1a775d741fbbb360ca0d37863f8ca17ddd1513566bd02682c38262"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/agentscope/app/_router/_schema/_chat.py:60-64 | src/agentscope/tool/_builtin/_ask_user.py:99-103 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_router/_schema/_chat.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0c3d9e6aed8dd2f1115af05f02bc95aa2bad1356a7317611f1686353a9971e"}},{"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 (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 5 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 (39\u201344 lines \u00D7 4): src/agentscope/model/_dashscope/_model.py:366-404 | src/agentscope/model/_deepseek/_model.py:298-341 | src/agentscope/model/_moonshot/_model.py:367-410 | src/agentscope/model/_volcengine/_model.py:335-378 \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 10 separate duplicated blocks between them, totalling at least 213 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:366\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"f856eb4e80529c70dbf673ce71d1c09d45870de6b79db7ef17b28e226ccd1e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): src/agentscope/message/_base.py:582-623 | src/agentscope/message/_base.py:692-732 \u2014 both copies are in the same file, so extract the block 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":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"617e6adb3ecc6e3a031f51e760cd4c910b2cd905eaa0a9c3f559d205bbb098e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201341 lines \u00D7 2): src/agentscope/embedding/_gemini/_model.py:344-371 | src/agentscope/embedding/_gemini/_model.py:434-474 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/embedding/_gemini/_model.py:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd72267cc0cd3d441b3990b5fbe7f54095883aa3b4989fb5de54728263e2e37b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201337 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:68-104 | src/agentscope/formatter/_openai_formatter.py:63-95 | src/agentscope/formatter/_volcengine_formatter.py:44-67 \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 18 separate duplicated blocks between them, totalling at least 329 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:63\u0060 it does not close everything it opens, so those exact 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/formatter/_dashscope_formatter.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6ca2e6068435a9edee6586d88f4cebae4cf09689eff883661152de7a4970c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201336 lines \u00D7 3): src/agentscope/model/_dashscope/_model.py:476-511 | src/agentscope/model/_deepseek/_model.py:370-404 | src/agentscope/model/_volcengine/_model.py:407-441 \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 10 separate duplicated blocks between them, totalling at least 213 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:476\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4e01d58885350c34be5bb275fab3fd2514fb893decb089f04278d65d673ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201336 lines \u00D7 2): src/agentscope/formatter/_anthropic_formatter.py:334-369 | src/agentscope/formatter/_openai_formatter.py:242-273 \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/formatter/_anthropic_formatter.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fd5d2048c937ab65176c3bbf68198b131479e6e618104c8d91ca0024f66afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): src/agentscope/model/_deepseek/_model.py:205-240 | src/agentscope/model/_volcengine/_model.py:242-277 \u2014 \u0060src/agentscope/model/_deepseek/_model.py\u0060 and \u0060src/agentscope/model/_volcengine/_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 15 separate duplicated blocks between them, totalling at least 332 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":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb3138944a4518d5ea58b9dec9f80a269f175e62753f25d030aeba244695fb3"}},{"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:148-182 | 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":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c4417b705d3938584e61c52e72e4662964c9ee3b1b019ff3ac8b63828cf2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201335 lines \u00D7 2): src/agentscope/formatter/_ollama_formatter.py:223-257 | src/agentscope/formatter/_openai_formatter.py:398-426 \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:223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad29eba479ca5bb563a869dcef00107f01a81602f622e3875ea216ff3dbea68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201334 lines \u00D7 4): src/agentscope/formatter/_dashscope_formatter.py:125-151 | src/agentscope/formatter/_dashscope_formatter.py:169-197 | src/agentscope/formatter/_moonshot_formatter.py:31-62 | src/agentscope/formatter/_openai_formatter.py:116-149 \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 10 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:63\u0060 calls \u0060get\u0060, \u0060raise_for_status\u0060, \u0060b64encode\u0060 and \u0060src/agentscope/formatter/_dashscope_formatter.py:152\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":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"5027ec48abcd99d0b7f2c12f32eba35725fa28c15e12a2e8a824d613216bc578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201333 lines \u00D7 7): src/agentscope/formatter/_anthropic_formatter.py:445-461 | src/agentscope/formatter/_dashscope_formatter.py:490-522 | src/agentscope/formatter/_deepseek_formatter.py:274-290 | src/agentscope/formatter/_gemini_formatter.py:384-400 | src/agentscope/formatter/_ollama_formatter.py:412-428 | src/agentscope/formatter/_openai_formatter.py:511-527 | src/agentscope/formatter/_volcengine_formatter.py:379-395 \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:445\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c576a5564086f1abdb6f8ca5a2fe85811646e11229f07d6c5e3ee6889fede14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201333 lines \u00D7 5): src/agentscope/model/_dashscope/_model.py:229-257 | src/agentscope/model/_deepseek/_model.py:173-205 | src/agentscope/model/_openai_chat/_model.py:240-272 | src/agentscope/model/_openai_response/_model.py:329-361 | src/agentscope/model/_volcengine/_model.py:210-242 \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 10 separate duplicated blocks between them, totalling at least 213 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":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47c86367ca2c6a9ba3a0e8c3a1cd7d16eddde3022a02e177df30e113dd7c5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): src/agentscope/formatter/_moonshot_formatter.py:207-239 | src/agentscope/formatter/_openai_formatter.py:366-398 \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 13 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_moonshot_formatter.py"},"region":{"startLine":207}}}],"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 (29\u201332 lines \u00D7 2): src/agentscope/embedding/_embedding_model_card.py:142-170 | src/agentscope/model/_model_card.py:137-168 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 (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 (31 lines \u00D7 5): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:156-187 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:186-220 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:270-315 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:180-210 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:206-249 \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 6 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c6f5b7d7673f3adb0b7fa14e5dde6f912c48b3a2d18a1cc34f65a51b4c1d40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 3): src/agentscope/model/_deepseek/_model.py:441-470 | src/agentscope/model/_moonshot/_model.py:513-543 | src/agentscope/model/_volcengine/_model.py:476-505 \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 10 separate duplicated blocks between them, totalling at least 204 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":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"054e5634ee874553379055a6e0ae83eb2e24ad3a935f0802a3fa09d681cfeba5"}},{"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:274-302 \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 8 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 (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:246-273 \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 8 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/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:709-736 | src/agentscope/model/_gemini/_model.py:781-810 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa98bddd8f138cf006ad56ac25153b038bb9e1e75caf5fee16ad8b1b48dbd05"}},{"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:689-715 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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:607-633 | src/agentscope/formatter/_openai_formatter.py:613-639 \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 18 separate duplicated blocks between them, totalling at least 329 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:607\u0060 it begins part-way through the construct above it, so those exact 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":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7eaabd7519e12386d50f3995afb3d6432cad76c563d51347cdc456e946d9910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): src/agentscope/model/_deepseek/_model.py:253-278 | src/agentscope/model/_moonshot/_model.py:319-344 | src/agentscope/model/_volcengine/_model.py:290-315 \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 10 separate duplicated blocks between them, totalling at least 204 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/_deepseek/_model.py:253\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/_deepseek/_model.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e193087afdb502ec64a4cc93788f26835d8811d079601b3a49bc09da470f17c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): src/agentscope/agent/_agent.py:3754-3779 | src/agentscope/agent/_agent.py:3891-3914 \u2014 both copies are in the same file, so extract the block 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":3754}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93b74ec716aa01e1b603c1ae804f711e54650cb820bfa5782ae87420f0cc573"}},{"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 (25 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:394-418 | src/agentscope/formatter/_moonshot_formatter.py:256-280 | src/agentscope/formatter/_openai_formatter.py:408-432 \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 10 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b90e263c57fd1b1899dc30da9b1c7e1976add51eb12ecb6be2f94124a41cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:594-617 | src/agentscope/formatter/_gemini_formatter.py:476-500 | src/agentscope/formatter/_openai_formatter.py:600-623 \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":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff47116a97c65aa96165ce0e43bc7821ac91f624ae8d9cda4958bcdd511564fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): src/agentscope/app/_router/_session.py:337-359 | src/agentscope/app/_router/_session.py:532-556 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:532\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d53604483ec6279cf0fd11875a814b96ba5e034c798f58fa351ba2d469244d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): src/agentscope/app/_service/_chat.py:1205-1229 | src/agentscope/app/_service/_realtime.py:328-348 \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:1205\u0060 it begins part-way through the construct above it, so those exact 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/_service/_chat.py"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"8effe280c1fbf3a9a56596cbeadb03b30be6706becb639d0324f5489e75f3d04"}},{"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:277-301 \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 8 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/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:389-413 | 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 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/realtime/_dashscope/_model.py:389\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":389}}}],"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 (21\u201324 lines \u00D7 6): src/agentscope/app/workspace_manager/_applecontainer_workspace_manager.py:179-200 | src/agentscope/app/workspace_manager/_daytona_workspace_manager.py:212-234 | src/agentscope/app/workspace_manager/_docker_workspace_manager.py:316-339 | src/agentscope/app/workspace_manager/_e2b_workspace_manager.py:307-330 | src/agentscope/app/workspace_manager/_k8s_workspace_manager.py:202-222 | src/agentscope/app/workspace_manager/_opensandbox_workspace_manager.py:241-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 6 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aba8f14c33ff25d8885f7b7f10bfbc0a7c4f9710ccb16b515ec3260fe86db80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 5): src/agentscope/model/_dashscope/_model.py:398-421 | src/agentscope/model/_deepseek/_model.py:335-358 | src/agentscope/model/_moonshot/_model.py:404-427 | src/agentscope/model/_openai_chat/_model.py:484-507 | src/agentscope/model/_volcengine/_model.py:372-395 \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 10 separate duplicated blocks between them, totalling at least 213 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:398\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_dashscope/_model.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd056abae0dfca9433278583fb5cf9e7b685fec5195d05e62b2a2000cd5c5802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201324 lines \u00D7 2): src/agentscope/app/_service/_chat.py:1078-1101 | src/agentscope/app/_service/_realtime.py:189-206 \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:1078\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":1078}}}],"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 (24 lines \u00D7 2): src/agentscope/embedding/_dashscope/_model.py:382-405 | src/agentscope/embedding/_dashscope/_model.py:471-494 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/embedding/_dashscope/_model.py:382\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/embedding/_dashscope/_model.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7c29d372ace776d402f93972553f09e66197c85f8d93e067159c114c8dde75"}},{"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 (23 lines \u00D7 2): src/agentscope/model/_moonshot/_model.py:480-502 | src/agentscope/model/_openai_chat/_model.py:612-634 \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 158 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":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c5ed75dba4ce7bfc1b27d4787c67f1bbc9f0ced63ebd74f71f8bf53b9c8029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201323 lines \u00D7 2): src/agentscope/tool/_adapters.py:265-287 | 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":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c96c197cfd1bd3d8c90a5f86c57d76fa4899f1b29981910ac4c94a357c22249"}},{"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 (21\u201322 lines \u00D7 2): src/agentscope/formatter/_anthropic_formatter.py:543-564 | src/agentscope/formatter/_ollama_formatter.py:512-532 \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:543\u0060 it begins part-way through the construct above it, so those exact 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":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"345d62cbe9feeb4a8e3c1c9f25e628ddd02144bac66c82cfcbda445af4f0efbf"}},{"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:196-217 | src/agentscope/formatter/_volcengine_formatter.py:259-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_volcengine_formatter.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab44f0da062ef640a5673cc082a62b3b26176cd92a53149f822ea96ab8c01f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): src/agentscope/workspace/_local_workspace.py:218-239 | src/agentscope/workspace/_local_workspace.py:833-853 \u2014 both copies are in the same file, so extract the block into one function there 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":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70e17530af904897fd30a4e04dc41104c5cab3b234fb48655dfcfecf8f4857d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): src/agentscope/formatter/_dashscope_formatter.py:519-539 | src/agentscope/formatter/_moonshot_formatter.py:418-438 | src/agentscope/formatter/_openai_formatter.py:524-544 | src/agentscope/formatter/_volcengine_formatter.py:392-412 \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 10 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeb9049031edbb177dc146240324972ce6c4b8332dacca8755f1ab2b43162b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): src/agentscope/model/_moonshot/_model.py:486-506 | src/agentscope/model/_openai_chat/_model.py:618-638 | src/agentscope/model/_openai_response/_model.py:735-755 \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 158 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:486\u0060 it begins part-way through the construct above it, so those exact 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":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4048157c22830d8d54a7d3a3baff927a597743c1ceacdb2ff3c3b16e75025e0"}},{"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:1242-1259 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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:752-772 | src/agentscope/workspace/_sandboxed_base.py:398-418 \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":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbd6e92a16563fe5281e1c1fe31cadd3af1ed80b800db992bbb04111346af9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:332-351 | src/agentscope/formatter/_moonshot_formatter.py:197-216 | src/agentscope/formatter/_openai_formatter.py:356-375 \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 10 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2348bbdd73a7e488f2b61576e615f21bd0ea6c8aecb965c58eb9005cae2ea839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/agentscope/app/_service/_chat.py:1450-1473 | src/agentscope/app/_service/_chat.py:1570-1589 \u2014 both copies are in the same file, so extract the block into one function there 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":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"070fd32abdd5f2d65f5ca30995bfb88f2ecdb95bafe79b696c3bcc8cd789c08d"}},{"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 (19 lines \u00D7 6): src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:38-56 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:74-92 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:100-118 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:142-160 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:181-199 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:233-251 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:38\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"109990f3a05c0404704cdcd5b7e32678fefeb585b87161951b082578330f26e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 6): src/agentscope/formatter/_dashscope_formatter.py:514-532 | src/agentscope/formatter/_deepseek_formatter.py:282-300 | src/agentscope/formatter/_gemini_formatter.py:392-410 | src/agentscope/formatter/_moonshot_formatter.py:413-431 | src/agentscope/formatter/_openai_formatter.py:519-537 | src/agentscope/formatter/_volcengine_formatter.py:387-405 \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 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:514\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/_dashscope_formatter.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"0040488a14d63c1557af5d07cec4324eb5bc951ca5c67174b98f842037f4e695"}},{"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:135-153 | src/agentscope/tts/_tts_model_card.py:105-120 \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:123\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:275-293 | src/agentscope/formatter/_openai_formatter.py:427-445 \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 8 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/formatter/_openai_formatter.py:447\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/rag/_parser/_word.py:259-277 | src/agentscope/rag/_parser/_word.py:281-299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e117e0dc9311057753501b76a3bb99f0414ed1f379cc6c6df0f006b6aba455e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): src/agentscope/tool/_builtin/_bash.py:796-814 | src/agentscope/tool/_builtin/_powershell.py:269-283 \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":796}}}],"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/formatter/_anthropic_formatter.py:365-382 | src/agentscope/formatter/_gemini_formatter.py:95-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_anthropic_formatter.py:365\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/_anthropic_formatter.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"abed0ad13b12536dbee6e53af15f7b77dd4c9ff8af28ffa3de3ab41515342620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/agentscope/formatter/_moonshot_formatter.py:181-198 | src/agentscope/formatter/_moonshot_formatter.py:240-257 \u2014 both copies are in the same file, so extract the block into one function there 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":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"1893cf8e265b8e1b44336022af741fb70bc9badaea65079fd0021937e3c1b2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/agentscope/model/_moonshot/_model.py:352-369 | src/agentscope/model/_openai_chat/_model.py:391-408 \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 158 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":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"843466125b1b28426c99367ab1d39ae8ef4598a8a13dffdae234ce46e2b2ddb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/agentscope/model/_openai_response/_model.py:574-591 | src/agentscope/model/_openai_response/_model.py:729-744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_openai_response/_model.py"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dc76ed4479be102a97b9113c3bbbd1fb131a5c919e18d71f0ff4d534fa676c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): src/agentscope/model/_dashscope/_model.py:339-355 | src/agentscope/model/_deepseek/_model.py:271-287 | src/agentscope/model/_moonshot/_model.py:337-353 | src/agentscope/model/_openai_chat/_model.py:376-392 | src/agentscope/model/_volcengine/_model.py:308-324 \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 10 separate duplicated blocks between them, totalling at least 213 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:337\u0060 calls \u0060_generate_id\u0060 and \u0060src/agentscope/model/_deepseek/_model.py:269\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":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"456a868c22fc7f614f78d3ef423448cecc8ef1bf804b02974e23b65543cb68b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): src/agentscope/model/_dashscope/_model.py:503-519 | src/agentscope/model/_deepseek/_model.py:396-412 | src/agentscope/model/_moonshot/_model.py:465-481 | src/agentscope/model/_volcengine/_model.py:433-449 \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 10 separate duplicated blocks between them, totalling at least 213 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:482\u0060 calls \u0060getattr\u0060 and \u0060src/agentscope/model/_deepseek/_model.py:413\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":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff183bdf89e34a566f879adf9ac9be83d7c58ea351f6222853a8319e8601e3a"}},{"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 (16\u201317 lines \u00D7 2): src/agentscope/formatter/_dashscope_formatter.py:572-587 | src/agentscope/formatter/_openai_formatter.py:577-593 \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 18 separate duplicated blocks between them, totalling at least 329 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd193a41b0399b5b1ea05d02754c32bd82d250ec9d333f7f8402a905ab273de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): src/agentscope/tool/_builtin/_backend.py:827-843 | 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":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a33f557294591fa427b187e3009fcc19baee4b4f16c803520aab79a91940b1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/agentscope/tool/_builtin/_edit.py:398-414 | src/agentscope/tool/_builtin/_write.py:299-314 \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 5 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/tool/_builtin/_edit.py:398\u0060 it does not close everything it opens, so those exact 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/tool/_builtin/_edit.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"09705821cb7e1b7ec27e8f86a3f997fddc1e237774c1103d35fe5a2c35a6d47e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/agentscope/model/_moonshot/_model.py:352-367 | src/agentscope/model/_moonshot/_model.py:480-495 | src/agentscope/model/_openai_chat/_model.py:391-406 | src/agentscope/model/_openai_chat/_model.py:612-627 \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 158 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":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"371596ff6f4c0b3e8ac197fbc54f7273ebce0bc10780e19cc169698a24c19ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/agentscope/model/_deepseek/_model.py:229-244 | src/agentscope/model/_moonshot/_model.py:295-310 | src/agentscope/model/_volcengine/_model.py:266-281 \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 10 separate duplicated blocks between them, totalling at least 204 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":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"045160c0c842c653a84790216698ff94ae29907479e5ebb64d7b3e2724cf1fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/agentscope/model/_moonshot/_model.py:471-486 | src/agentscope/model/_openai_chat/_model.py:603-618 | src/agentscope/model/_volcengine/_model.py:439-454 \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 158 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:471\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7401444fb9ce2f4aef40111c6f2156255588a693dd575a044bda1590c1d111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/agentscope/embedding/_gemini/_model.py:373-388 | src/agentscope/embedding/_gemini/_model.py:476-491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/embedding/_gemini/_model.py:373\u0060 it begins part-way through the construct above it, so those exact 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/_gemini/_model.py"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44814f2c85a81dac1f40400a8bc1b838d6e1a6dbe86273c704fe25de466db41"}},{"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:187-202 \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 8 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. 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 (16 lines \u00D7 2): src/agentscope/tts/_dashscope/_cosyvoice_model.py:366-381 | 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:366\u0060 it begins part-way through the construct above it, so those exact 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:382\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":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2eab280a9b74db4030e46ef9374f8bef516e6868abf181f63f3945c056fffc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:43-57 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:79-93 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:105-119 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:147-161 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:186-200 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:238-252 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:294-308 \u2014 all 7 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a282a787436d87c385465b5cfa861cf0acc4882ecdd37172f74f6b3af3fa4cbd"}},{"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:478-492 | 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:508-520 | src/agentscope/model/_moonshot/_model.py:470-482 | src/agentscope/model/_openai_chat/_model.py:600-614 | src/agentscope/model/_volcengine/_model.py:438-450 \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 8 separate duplicated blocks between them, totalling at least 146 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:600\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4b85c78ac04af7c9be1fb67af50d6ac36b4560681384c8f73199cae133c154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): src/agentscope/realtime/_dashscope/_model.py:296-310 | src/agentscope/realtime/_gemini/_model.py:412-426 | 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 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab5bd252a6f43c5f2a65085f745873154222f63d75f563b601e9adeb31c4703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/agentscope/realtime/_openai/_model.py:301-315 | src/agentscope/realtime/_openai_live/_model.py:384-398 | src/agentscope/realtime/_xai/_model.py:268-282 \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 56 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 (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:366-380 | src/agentscope/embedding/_dashscope/_model.py:455-469 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:366\u0060 it does not close everything it opens, so those exact 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":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6929a110e3da3be347aa0bafde3a8e9442648907cfc0c095549b55da216942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/agentscope/formatter/_dashscope_formatter.py:319-333 | src/agentscope/formatter/_dashscope_formatter.py:381-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"118a04d06338f0cfee1cecd60e68fe6490a3fa0d62a6f1ad66466082bc781bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/agentscope/tool/_builtin/_bash.py:776-793 | src/agentscope/tool/_builtin/_powershell.py:278-292 \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:278\u0060 it begins part-way through the construct above it, so those exact 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":776}}}],"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 (11\u201314 lines \u00D7 5): src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:87-97 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:113-123 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:160-170 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:219-229 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:246-259 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:231\u0060 calls \u0060Column\u0060, \u0060String\u0060 and \u0060src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:99\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/app/storage/_sql/_alembic/versions/0001_initial.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"72360416d472c4d7008e90138fc696d534c2eb83919cc5ba3bfa3b5e9192f8bc"}},{"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:331-344 | 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 lines \u00D7 7): src/agentscope/formatter/_dashscope_formatter.py:513-525 | src/agentscope/formatter/_deepseek_formatter.py:281-293 | src/agentscope/formatter/_gemini_formatter.py:391-403 | src/agentscope/formatter/_moonshot_formatter.py:412-424 | src/agentscope/formatter/_ollama_formatter.py:419-431 | src/agentscope/formatter/_openai_formatter.py:518-530 | src/agentscope/formatter/_volcengine_formatter.py:386-398 \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 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d365269fc4207b06ec3af161eba7b129042917f5a54bdd918e78ef4f33f08d"}},{"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:212-223 | src/agentscope/formatter/_moonshot_formatter.py:276-288 | src/agentscope/formatter/_openai_formatter.py:371-382 | src/agentscope/formatter/_openai_formatter.py:428-440 \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 8 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. 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 (9\u201313 lines \u00D7 5): src/agentscope/model/_dashscope/_model.py:247-259 | src/agentscope/model/_deepseek/_model.py:195-207 | src/agentscope/model/_gemini/_model.py:450-458 | src/agentscope/model/_openai_chat/_model.py:262-274 | src/agentscope/model/_volcengine/_model.py:232-244 \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 10 separate duplicated blocks between them, totalling at least 213 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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a9c2d413cb4799aea31ef720f4ef2c1f1e33f4179b2c73e1c26cd03b9ee0c0"}},{"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 (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:568-580 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 (12\u201313 lines \u00D7 2): src/agentscope/formatter/_volcengine_formatter.py:231-242 | src/agentscope/formatter/_volcengine_formatter.py:298-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/_volcengine_formatter.py:231\u0060 it does not close everything it opens, so those exact 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":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"921c73873f06f5ffb17b88631ae5917ee38235422adaf9481d7100041ff815c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/agentscope/model/_dashscope/_model.py:354-366 | src/agentscope/model/_dashscope/_model.py:518-530 \u2014 both copies are in the same file, so extract the block into one function there 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/_dashscope/_model.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"feba45ec4cc9333cd944e0593808789e98b469d96f77d67685fe455c796e36ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/agentscope/model/_deepseek/_model.py:286-298 | src/agentscope/model/_deepseek/_model.py:411-423 \u2014 both copies are in the same file, so extract the block into one function there 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/_deepseek/_model.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b170351298ce9a7e5ec9440ff5a46e281b50e3a8d810ef4288fabf48d759bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/agentscope/model/_model_card.py:156-169 | src/agentscope/tts/_tts_model_card.py:125-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/model/_model_card.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/model/_model_card.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"1037829c23393bbe0c82400388880d975ef3ae1fb0026bdb7c7d62b43f76d8a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/agentscope/model/_volcengine/_model.py:323-335 | src/agentscope/model/_volcengine/_model.py:448-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_volcengine/_model.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2f4b8c283b741dee0d34af1ee3ccb7cf0851caf49065f194c975266c3dc4e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/agentscope/workspace/_local_workspace.py:713-725 | src/agentscope/workspace/_sandboxed_base.py:348-360 \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":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ebead12c2107fcfdb848a81f7efea75c9a176ce5f94861d41e52d071c7e4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/agentscope/embedding/_gemini/_model.py:358-369 | src/agentscope/embedding/_gemini/_model.py:461-472 | src/agentscope/embedding/_openai/_model.py:146-157 \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 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":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f3c721f365dc05f037672806a513a85fefa8ba3556ccbd6ddb80f57ab76b70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/agentscope/agent/_agent.py:872-883 | src/agentscope/agent/_agent.py:2099-2110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:872\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":872}}}],"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 (11 lines \u00D7 4): src/agentscope/model/_dashscope/_model.py:491-501 | src/agentscope/model/_deepseek/_model.py:384-394 | src/agentscope/model/_moonshot/_model.py:453-463 | src/agentscope/model/_volcengine/_model.py:421-431 \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 10 separate duplicated blocks between them, totalling at least 213 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":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7431c6b931c924e2040c1462d8346d16a80ec3c9cade3cebc6684707880d842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/agentscope/formatter/_dashscope_formatter.py:301-311 | src/agentscope/formatter/_openai_formatter.py:329-339 | src/agentscope/formatter/_volcengine_formatter.py:177-187 \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 18 separate duplicated blocks between them, totalling at least 329 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd7083c0b608479dc85fe6ca59af7b380909a3e66f2c2760f5b1d974c23ad42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/agentscope/app/_lifespan.py:168-178 | src/agentscope/app/_lifespan.py:185-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/_lifespan.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2489f6fa25fc32393371eb2bf6cf775957122b526b6cd54e450f4ad6d96b15"}},{"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:2096-2106 | src/agentscope/app/storage/_sql/_storage.py:2134-2144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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:2096\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"250e61839ffc38c26ff91ba05bf66f9d13e7084ab1edffa213d9cee094bc887f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/agentscope/formatter/_gemini_formatter.py:89-99 | src/agentscope/formatter/_openai_formatter.py:212-222 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_gemini_formatter.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e78067024de0fb1cb2d969a6568878fd5fa16152af861666cb67587ee811c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): src/agentscope/formatter/_anthropic_formatter.py:452-461 | src/agentscope/formatter/_dashscope_formatter.py:513-522 | src/agentscope/formatter/_deepseek_formatter.py:281-290 | src/agentscope/formatter/_gemini_formatter.py:391-400 | src/agentscope/formatter/_moonshot_formatter.py:412-421 | src/agentscope/formatter/_ollama_formatter.py:419-428 | src/agentscope/formatter/_openai_formatter.py:518-527 | src/agentscope/formatter/_volcengine_formatter.py:386-395 \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:452\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7c36f9b528b455abe092535eaab3ef95bf132fd4976adf09c4a05a4ceb6378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/agentscope/model/_dashscope/_model.py:300-309 | src/agentscope/model/_deepseek/_model.py:237-246 | src/agentscope/model/_moonshot/_model.py:303-312 | src/agentscope/model/_volcengine/_model.py:274-283 \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 10 separate duplicated blocks between them, totalling at least 213 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":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3ac38ff3aa034811f414f047bd3ff1239022b6014a8707556ee6d982d8a9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/agentscope/model/_anthropic/_model.py:728-737 | src/agentscope/model/_gemini/_model.py:802-811 | src/agentscope/model/_xai/_model.py:270-279 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_anthropic/_model.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb79a55a7804712b7f8ed95c7aed4a8218bc97143cb30a5e3f74c7ee0502a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): src/agentscope/model/_deepseek/_model.py:202-211 | src/agentscope/model/_volcengine/_model.py:239-248 | src/agentscope/model/_xai/_model.py:213-221 \u2014 \u0060src/agentscope/model/_deepseek/_model.py\u0060 and \u0060src/agentscope/model/_volcengine/_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 15 separate duplicated blocks between them, totalling at least 332 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_deepseek/_model.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e255a2805db02542e277742f12af8768993b0e23fb89dd7278e9045d542ca591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:24-40 | src/agentscope/app/storage/_sql/_alembic/versions/0005_voice_profiles.py:21-37 \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/storage/_sql/_alembic/versions/0004_sops.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fc27e53697aabdcfe56aa0e6f33459e1b6c84814c4f8b1f079d4f2d81c6f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/agentscope/model/_moonshot/_model.py:463-472 | src/agentscope/model/_ollama/_model.py:334-343 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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:463\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/model/_moonshot/_model.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f883be6ab818c2ad0e6b9d9374754cba6032ff84c3b07700b80ce61f76a63d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/agentscope/workspace/_base.py:669-678 | src/agentscope/workspace/_sandboxed_base.py:288-297 \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":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"1155f62cbe3be663a05ceab4cf5bd72d8ff9f7c51005807b601c03e033ae7e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): src/agentscope/formatter/_anthropic_formatter.py:450-458 | src/agentscope/formatter/_dashscope_formatter.py:511-519 | src/agentscope/formatter/_deepseek_formatter.py:279-287 | src/agentscope/formatter/_gemini_formatter.py:389-397 | src/agentscope/formatter/_ollama_formatter.py:417-425 | src/agentscope/formatter/_openai_formatter.py:516-524 | src/agentscope/formatter/_openai_response_formatter.py:452-460 | src/agentscope/formatter/_volcengine_formatter.py:384-392 \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":450}}}],"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:226-235 \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 8 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 3): src/agentscope/formatter/_anthropic_formatter.py:363-370 | src/agentscope/formatter/_gemini_formatter.py:94-101 | src/agentscope/formatter/_openai_formatter.py:267-274 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/formatter/_anthropic_formatter.py:363\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"981d04da5a630eb506d2681c2b2206431d5ffdeee6632e711305d949a1367d12"}},{"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 (2\u20137 lines \u00D7 9): src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:66-72 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:92-98 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:118-124 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:133-139 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:165-171 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:224-230 | src/agentscope/app/storage/_sql/_alembic/versions/0002_mcps_skills.py:31-32 | src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:39-45 | src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:46-47 \u2014 there are 9 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 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:66\u0060 it begins part-way through the construct above it, so those exact 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/app/storage/_sql/_alembic/versions/0001_initial.py:140\u0060 calls \u0060Column\u0060, \u0060String\u0060 and \u0060src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:73\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/app/storage/_sql/_alembic/versions/0001_initial.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7188c6cc6260c0f09787e0bc9e31f08b664570bee48ae922e3bfef8b93bb961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 5): src/agentscope/formatter/_dashscope_formatter.py:144-149 | src/agentscope/formatter/_dashscope_formatter.py:190-195 | src/agentscope/formatter/_dashscope_formatter.py:240-245 | src/agentscope/formatter/_moonshot_formatter.py:55-60 | src/agentscope/formatter/_openai_formatter.py:141-147 \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 10 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/formatter/_dashscope_formatter.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ad6b6fe7fd907925d3a5ac9a8c269f469de102a4ef82e9436221f1d439bf7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/agentscope/formatter/_dashscope_formatter.py:303-309 | src/agentscope/formatter/_deepseek_formatter.py:68-74 | src/agentscope/formatter/_openai_formatter.py:331-337 | src/agentscope/formatter/_volcengine_formatter.py:179-185 \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 6 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25d669659a716bdf89a168be3c2dabab154852555573d45cfdfd1b419fb4f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): src/agentscope/formatter/_dashscope_formatter.py:582-589 | src/agentscope/formatter/_moonshot_formatter.py:478-484 | src/agentscope/formatter/_openai_formatter.py:588-595 | src/agentscope/formatter/_openai_response_formatter.py:538-544 \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 10 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c305ba73f9c8f25f8b80fa773ee7f8986931b87ad6899a1e731dac519b27507"}},{"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 8 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 9): src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:37-42 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:73-78 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:99-104 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:141-146 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:180-185 | src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:232-237 | src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:29-34 | src/agentscope/app/storage/_sql/_alembic/versions/0004_sops.py:48-53 | src/agentscope/app/storage/_sql/_alembic/versions/0005_voice_profiles.py:26-31 \u2014 there are 9 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 9 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \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/0001_initial.py:34\u0060 calls \u0060Column\u0060, \u0060String\u0060 and \u0060src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:70\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/0001_initial.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9680d07d52cd8cafcfbaa3de1fad5297d3ad9adc4fec6c8a3a783ee0a10582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): src/agentscope/model/_dashscope/_model.py:253-260 | src/agentscope/model/_deepseek/_model.py:201-208 | src/agentscope/model/_gemini/_model.py:452-459 | src/agentscope/model/_moonshot/_model.py:236-243 | src/agentscope/model/_openai_chat/_model.py:268-275 | src/agentscope/model/_volcengine/_model.py:238-245 | src/agentscope/model/_xai/_model.py:212-217 \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 10 separate duplicated blocks between them, totalling at least 213 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/_gemini/_model.py:461\u0060 calls \u0060_is_gemini_4\u0060 and \u0060src/agentscope/model/_deepseek/_model.py:210\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/_dashscope/_model.py"},"region":{"startLine":253}}}],"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 (6 lines \u00D7 2): src/agentscope/formatter/_gemini_formatter.py:88-93 | src/agentscope/formatter/_ollama_formatter.py:85-90 \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/_gemini_formatter.py:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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/_gemini_formatter.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02f8d0a579ba8dd1c5d690690c1395c052e0f275e8b5ae997dfdcc60ade37dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/agentscope/tts/_gemini/_model.py:298-304 | src/agentscope/tts/_gemini/_model.py:378-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/tts/_gemini/_model.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"906b7e0d41fd46568c26a84e89d2efedf49bd40e9b8aa0e0dbdb24881704bd11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): src/agentscope/formatter/_dashscope_formatter.py:145-149 | src/agentscope/formatter/_dashscope_formatter.py:191-195 | src/agentscope/formatter/_dashscope_formatter.py:241-245 | src/agentscope/formatter/_gemini_formatter.py:89-94 | src/agentscope/formatter/_moonshot_formatter.py:56-60 | src/agentscope/formatter/_ollama_formatter.py:86-91 | src/agentscope/formatter/_openai_formatter.py:142-147 | src/agentscope/formatter/_openai_formatter.py:212-217 \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":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1064fd918a878b4fb674fcf585e350ce78d6d9dc8c7e5a1efd1eadb942891410"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py:31-35 | src/agentscope/app/storage/_sql/_alembic/versions/0003_channels.py:34-38 \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/storage/_sql/_alembic/versions/0001_initial.py:31\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/_alembic/versions/0001_initial.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a2f2d7f370311a2e199e42265095d2542497acce14f7eb71cf5c4cd830f873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/agentscope/asr/_dashscope/_realtime_model.py:24-28 | src/agentscope/realtime/_dashscope/_model.py:23-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/asr/_dashscope/_realtime_model.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c0dcdb46718bac6d20fcdcf695158dfcc9ffa30b9ed2fea80eca89dd6e7041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/agentscope/app/storage/_sql/_alembic/versions/0003_channels.py:59-63 | src/agentscope/app/storage/_sql/_alembic/versions/0005_voice_profiles.py:41-45 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_alembic/versions/0003_channels.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"af717247c5f413df1ab46d8878c078fb3abb8d18e85b9f2809b390fe9443ba16"}},{"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:385-398 | 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:401-415 | 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:460-475 | 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:446-455 | 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 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bbe6bca5e82d05d8887be4e309478f862747cf64426afd6d28a57fb133f756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): src/agentscope/realtime/_dashscope/_model.py:221-238 | 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 58 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/realtime/_dashscope/_model.py"},"region":{"startLine":221}}}],"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 56 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:309-325 | 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":309}}}],"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 5 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 5 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 5 separate duplicated blocks between them, totalling at least 163 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:42-49 | 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":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1c3da1f7dce65ff26ba2e605248f5685524a951cff7db28d6406d6c891e462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): src/agentscope/workspace/_applecontainer/_applecontainer_workspace.py:498-526 | src/agentscope/workspace/_e2b/_e2b_workspace.py:332-368 | src/agentscope/workspace/_opensandbox/_opensandbox_workspace.py:351-397 \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 (17 lines \u00D7 2): src/agentscope/app/_router/_model.py:24-40 | src/agentscope/app/_router/_tts_model.py:24-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. 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 \u0060body\u0060 to \u0060ListModelsRequest = Depends()\u0060 in one and \u0060ListTTSModelsRequest = Depends()\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/_model.py"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"23510ca2c0ad334280d14fc9b38f34da3988eb4b014b638778386e9625d53f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/agentscope/app/_router/_skill.py:36-43 | src/agentscope/app/_router/_sop.py:47-54 | src/agentscope/app/_router/_sop.py:62-69 | src/agentscope/app/_router/_voice_profile.py:250-266 \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. 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":"Edited copies of one member (3 members, 38\u002B corresponding lines): examples/long_term_memory/agentic_memory/main.py:116-153 | examples/long_term_memory/mem0/oss_demo.py:94-152 | examples/long_term_memory/reme/reme_demo.py:128-200 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 38 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/long_term_memory/agentic_memory/main.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3588dfafa37d4b4d9273807ae794be5454ad4db0fe9bb1550f98970a2445496"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 68\u002B corresponding lines): scripts/model_examples/anthropic_multiagent_multimodal.py:25-95 | scripts/model_examples/dashscope_multiagent_multimodal.py:24-91 | scripts/model_examples/gemini_multiagent_multimodal.py:19-89 | scripts/model_examples/minimax_multiagent_multimodal.py:26-94 | scripts/model_examples/moonshot_multiagent_multimodal.py:20-87 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 68 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_multiagent_multimodal.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9ca75b2bc072f5532e0d8298f12ff915b7ca6434dd5f136cad73f79b0c134f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 33\u002B corresponding lines): scripts/model_examples/anthropic_multimodal.py:28-63 | scripts/model_examples/dashscope_multimodal.py:39-71 | scripts/model_examples/gemini_multimodal.py:27-62 | scripts/model_examples/moonshot_multimodal.py:26-58 | scripts/model_examples/openai_response_multimodal.py:28-60 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_multimodal.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c25401fadf91589b678d5b5f64e3de57c08b819f3cdcc06c15f9ea1d4fb9428"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 33\u002B corresponding lines): scripts/model_examples/anthropic_call.py:151-185 | scripts/model_examples/gemini_call.py:151-185 | scripts/model_examples/minimax_call.py:153-185 | scripts/model_examples/openai_chat_call.py:151-185 | scripts/model_examples/openai_response_call.py:159-193 | scripts/model_examples/xai_call.py:155-189 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_call.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b0a1e048e8806eebc72713e1a2c8e93f489416753591c601a756daf3995728"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): scripts/model_examples/anthropic_call.py:28-51 | scripts/model_examples/gemini_call.py:28-51 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_call.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bed5b77da46925e706786c67d9ac2dcd4709ae97939578f34bf68a098c4c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): scripts/model_examples/openai_chat_call.py:28-51 | scripts/model_examples/openai_response_call.py:33-56 | scripts/model_examples/xai_call.py:33-56 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/openai_chat_call.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7daaf2f1b646ffe0dfee10f81da6ff9947b684cfb7333ae487866784f5b7d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 79\u002B corresponding lines): scripts/model_examples/anthropic_multiagent.py:19-101 | scripts/model_examples/dashscope_multiagent.py:19-97 | scripts/model_examples/deepseek_multiagent.py:19-98 | scripts/model_examples/gemini_multiagent.py:19-101 | scripts/model_examples/minimax_multiagent.py:20-104 | scripts/model_examples/moonshot_multiagent.py:19-97 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 79 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/anthropic_multiagent.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d4ff89609b95e664e1ae3d9ca992053a84d44489507a815e9e621c09404d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 67\u002B corresponding lines): scripts/model_examples/ollama_multiagent_multimodal.py:21-87 | scripts/model_examples/openai_chat_multiagent_multimodal.py:20-86 | scripts/model_examples/openai_response_multiagent_multimodal.py:20-86 | scripts/model_examples/xai_multiagent_multimodal.py:23-89 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 67 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/ollama_multiagent_multimodal.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"154357ae869cbfdda1ccdb83a48eaf1c5ab3faa50ef6c5083f25f867d9ee768e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 30\u002B corresponding lines): scripts/model_examples/dashscope_call.py:148-179 | scripts/model_examples/deepseek_call.py:152-183 | scripts/model_examples/moonshot_call.py:143-174 | scripts/model_examples/ollama_call.py:151-182 | scripts/model_examples/volcengine_call.py:118-147 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/dashscope_call.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a46d005e2ac9386685f2b2b0814d54914ef1aeb92690f37d2a3c9106c70636"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): scripts/model_examples/dashscope_call.py:28-48 | scripts/model_examples/deepseek_call.py:35-55 | scripts/model_examples/volcengine_call.py:26-44 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/dashscope_call.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c729cde0f88d59a7fee7fd07ae9d32a3e7ce525bace3ee925f096385aaff5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): scripts/model_examples/openai_chat_multimodal.py:68-73 | scripts/model_examples/openai_response_multimodal.py:64-69 | scripts/model_examples/xai_multimodal.py:66-71 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/model_examples/openai_chat_multimodal.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"10eb641bf6095ec442206e0d972e196eb71f1b2b5c0e18d66d956e328a6df6a6"}},{"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 (5 lines \u00D7 2): examples/realtime/local_mic.py:76-80 | examples/realtime/openai_live_local.py:66-70 \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":"examples/realtime/local_mic.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55882c76c624cbac2aa14354fac0d432e6440db5df8177e6b150d61f305a814"}},{"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":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b63f36e0f83d537603cca147927bf29794c7e72b67d7e8415fdc08be0bc488"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/app/_service/_chat.py: src/agentscope/app/_service/_chat.py changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 88 in ChatService._run_impl at line 908. 4 of those changes were fix/bug commits, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"181aba0f3d3e3d4eee043df76246afea8a0631d535ed9d2c6b7edf77f62ad4a0"}},{"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 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 106 in ChatViewport.ChatViewport at line 193. 1 of those changes was a fix/bug commit, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6904376d1a89413d45924829ddf591314190d498b29fa7ee121df44f3da3a355"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/agent/_agent.py: src/agentscope/agent/_agent.py changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in Agent._reply_impl at line 1051. 15 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7244eab07455de5c36594f99b19f477ed334dc12b3b3be564386cd751339cec"}},{"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 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 119 in TextInput.TextInput at line 162. 2 of those changes were fix/bug commits, 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1593dff54bf8ab25922b9f421d7cd9b4dc6a0a59db2083dfafb73f8aea038830"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/message/_base.py: src/agentscope/message/_base.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in Msg.append_event at line 247. 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"78037dfa0de857cef2c92c512a3e8ee128fe069ec9b083efc5fadb8617335055"}},{"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 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in ModelParametersPopover.ModelParametersPopover at line 618. 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd36a86bdef70a5276a75e2088bceb840b6d1ddefd535c717d5fd2b72111bae1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_openai_response/_model.py: src/agentscope/model/_openai_response/_model.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in OpenAIResponseModel._parse_stream_response at line 397. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f61a6259e3fd839faf65f7f6de91b79a54b3e22d5e83a5765c0c818f0408c56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/tool/_builtin/_bash_parser.py: src/agentscope/tool/_builtin/_bash_parser.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in BashCommandParser.check_sed_constraints at line 726. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"071ed28f2710c07db7b7cf6923ca96f2ab3ca5bcdbca10eea6aa92e6796f3bfb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_gemini_formatter.py: src/agentscope/formatter/_gemini_formatter.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in GeminiChatFormatter.format at line 158. 10 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf5fc0acf1657ac784575211e64500876f1e982898c7eb5dc6ff9784ebe6b22"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_anthropic/_model.py: src/agentscope/model/_anthropic/_model.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in AnthropicChatModel._parse_anthropic_stream_completion_response at line 483. 9 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e6c9fae54a88be928466100b9db585088e42027e94fb836679a53d3fff1839"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/agent/_realtime/_agent.py: src/agentscope/agent/_realtime/_agent.py changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in RealtimeAgent._on_model_event at line 887. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb46b010577320892e3365691e69a1235e7c65eaf356fab6cc09695a7ada662"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: examples/web_ui/frontend/src/hooks/useMessages.ts: examples/web_ui/frontend/src/hooks/useMessages.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 50 in useMessages.useMessages.processEvent at line 232. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"0893bb70845b95d6c97e1edfac81ce15b9972621335576014ecb75342e0db258"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_moonshot_formatter.py: src/agentscope/formatter/_moonshot_formatter.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in MoonshotChatFormatter.format at line 126. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02a5b6db1924a242d0d9984659c765f3da5cd112a7bb19c6a0794f628787108"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_anthropic_formatter.py: src/agentscope/formatter/_anthropic_formatter.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in _AnthropicFormatterBase._format_messages at line 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/formatter/_anthropic_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/_anthropic_formatter.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9127a5622312c5349bb6d0755aa9bd0b9628599e55d821bbf865112b5453be"}},{"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 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in ChatContent.ChatContentComponent at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3947344bc5ce074f9152dda095827e7fdc3e6bab8036d14b803f0dcf5424f247"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_openai_formatter.py: src/agentscope/formatter/_openai_formatter.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in OpenAIChatFormatter.format at line 304. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/formatter/_openai_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_formatter.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fff3db0e1b7e6149ca72806bd7d83de7e846b8f090540606577226765741f1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_ollama_formatter.py: src/agentscope/formatter/_ollama_formatter.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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: src/agentscope/formatter/_xai_formatter.py: src/agentscope/formatter/_xai_formatter.py changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in XAIChatFormatter.format at line 129. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51c114a9ab292b5fe3c64241d98b7701e5bb99b998d0ab4bf221012f8501d05"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/app/_app.py: src/agentscope/app/_app.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in _app.create_app at line 116. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba7e9187802e711c6ddfa9900f7c68e2a11c69f5f9af5fa3dd356609673918c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_gemini/_model.py: src/agentscope/model/_gemini/_model.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in GeminiChatModel._call_api at line 420. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"6329eaceb621271dadad036a3cfd2564112ebc646c93ac79bdcb86017a40621f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/rag/_parser/_word.py: src/agentscope/rag/_parser/_word.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in WordParser.parse at line 394. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2ad996c2769cb5352163185d8e21e3ddfd5626fc0d35f24ea363d8935775dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_openai_chat/_model.py: src/agentscope/model/_openai_chat/_model.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in OpenAIChatModel._parse_stream_response at line 341. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_openai_chat/_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_chat/_model.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"371c5f83f98752e5f1dbd694b88a57142fec319811ae6b390f3ee3d7d5379c75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/formatter/_openai_response_formatter.py: src/agentscope/formatter/_openai_response_formatter.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in OpenAIResponseFormatter.format at line 187. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9240aa1dda911d06fd35f8ce504f9b50d74b90820ae27dd1b283493ef89ed455"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/pipeline/_goal_pipeline.py: src/agentscope/pipeline/_goal_pipeline.py changed 5 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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: examples/web_ui/frontend/src/pages/chat/index.tsx: examples/web_ui/frontend/src/pages/chat/index.tsx changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in index.ChatPageInner at line 93. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c022b062a541cf561ebb2605879225339d2979850a8ddfe1acce2be60e336e6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_moonshot/_model.py: src/agentscope/model/_moonshot/_model.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in MoonshotChatModel._parse_stream_response at line 314. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd03d4fa76bb17b114c72cc697cb9a65810cda3850f13146816f730fa2a1bf3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/realtime/_dashscope/_model.py: src/agentscope/realtime/_dashscope/_model.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in DashScopeRealtimeModel._parse at line 348. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad9235b7fb1d0b7587a07f422aceca76fa9e8853d8a180f829b121a554b6bca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/tool/_builtin/_grep.py: src/agentscope/tool/_builtin/_grep.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Grep.call at line 329. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_builtin/_grep.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/_grep.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"96663acc190380feaa255d562e7012c4cf0de61e498b4581e8df76dbcb48f577"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_dashscope/_model.py: src/agentscope/model/_dashscope/_model.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in DashScopeChatModel._parse_stream_response at line 311. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_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/model/_dashscope/_model.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"938ca364637ebc1bcd139b352c1903f9ccc1a6a851b2074ca0f9fec4866f1e68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/app/_manager/_scheduler/_scheduler_manager.py: src/agentscope/app/_manager/_scheduler/_scheduler_manager.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in SchedulerManager.validate_schedule at line 336. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a3df3900a657e0906f706670ab802ba06a620d2ea02a0a820c0123631721cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/model/_deepseek/_model.py: src/agentscope/model/_deepseek/_model.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in DeepSeekChatModel._parse_stream_response at line 248. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_deepseek/_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/_deepseek/_model.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b0395d316a8a828124c933390df43d62d56717ec27090078f6276abf96ea8f"}},{"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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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/_manager/_wakeup_dispatcher.py: src/agentscope/app/_manager/_wakeup_dispatcher.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in WakeupDispatcher._dispatch_one at line 310. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_manager/_wakeup_dispatcher.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/_wakeup_dispatcher.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e131420817ab5ff669d0e6cc4b64206e8caaa2cc7f53025206901e49dd3ee6"}},{"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 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ASMessageBubble.ASBlock at line 663. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff3ad9ca56dc56487eaf54f38145bbc19807947c4c8f3c70894c538ba5b8dce"}},{"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 3 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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: src/agentscope/model/_base.py: src/agentscope/model/_base.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ChatModelBase.generate_structured_output at line 529. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ae0825ea43bc200a6daafecfc4232c9f5d2a35b8463720232f0c16c7d48665"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/tool/_builtin/_glob.py: src/agentscope/tool/_builtin/_glob.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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/tool/_builtin/_edit.py: src/agentscope/tool/_builtin/_edit.py changed 5 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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/model/_volcengine/_model.py: src/agentscope/model/_volcengine/_model.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in VolcengineChatModel._parse_stream_response at line 285. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_volcengine/_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/_volcengine/_model.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"4447761d2e1e7703c74d44c04c9ac646ad4e842c03251225ab8deb5c7153132e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/app/_service/_webrtc_session.py: src/agentscope/app/_service/_webrtc_session.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in WebRTCSession._run at line 187. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_service/_webrtc_session.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/_webrtc_session.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c4fae439c9d4b73cdf62aa20305c74b772ceedf4b2c91d81aa2cb731ec7739"}},{"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 32 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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: examples/web_ui/frontend/src/pages/schedule/create-schedule-dialog.tsx: examples/web_ui/frontend/src/pages/schedule/create-schedule-dialog.tsx changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in create-schedule-dialog.CreateScheduleDialog at line 117. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- examples/web_ui/frontend/src/pages/schedule/create-schedule-dialog.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/schedule/create-schedule-dialog.tsx"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a23b2ce546d82da38c0d156e0b5b9b1d8944824cb5d1d0b7f716d9ac6be41fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/agentscope/tool/_response.py: src/agentscope/tool/_response.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in ToolResponse.append_chunk at line 74. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_response.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/_response.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dab5066ec017ab91683c0fc8ff3cc7abeb41425719ed68087a42eb7e6300cd6"}},{"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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":"Repeated repair: src/agentscope/workspace/_base.py: src/agentscope/workspace/_base.py changed 9 times in last 90 days and 9 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is WorkspaceBase._enforce_mcp_capacity at line 851), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(workspace): honor an explicit max_live_stateful_mcps of 0 (#2741)\u201D; \u201Cfix(workspace): validate SKILL.md front matter in the shared installers (#3370)\u201D; \u201Cfix(workspace): read SKILL.md as utf-8-sig in every skill path (#3177)\u201D; \u201Cfix(workspace): read the persisted .mcp file as utf-8-sig (#3338)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"892083d9764e697410345a5b9e716cf81fcb05f91067e0281d49df49e0b94c5a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/_utils/_common.py: src/agentscope/_utils/_common.py changed 8 times in last 90 days and 8 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is _common._json_loads_with_repair at line 111), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(_utils): keep nested arguments that schema-guided repair drops (#2712)\u201D; \u201Cfix(utils): remove dangling discriminators when flattening schemas (#3618)\u201D; \u201Cfix(schema): decode escaped definition reference names (#3000)\u201D; \u201Cfix(utils): apply the NaN guard on the schema-less parse path too (#3626)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":111}}}],"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 9 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 13 (its worst body is MCPClient.model_post_init at line 158), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mcp): fence discovery responses after tool list invalidation (#3889)\u201D; \u201Cfix(mcp): reject overlapping stateful connection attempts (#3795)\u201D; \u201Cfix(mcp): refresh cached tools on tools/list_changed notification (#3734)\u201D; \u201Cfix(mcp): support mcp 2.x Python SDK, unpin mcp\u003C2.0.0 (#2216)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b8db734f02acff7cf2e3f7613f63fe7f8deae692aa88a0764152dbb65c86e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/rag/_parser/_excel.py: src/agentscope/rag/_parser/_excel.py changed 8 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 15 (its worst body is _excel._restore_native_excel_errors at line 87), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(rag): reject negative column indices when naming excel columns (#3874)\u201D; \u201Cfix(rag): preserve native Excel error cells (#3204)\u201D; \u201Cfix(rag): preserve duplicate and blank Excel headers (#2948)\u201D; \u201Cfix(rag): keep text and NA-like values intact in ExcelParser (#2893)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/rag/_parser/_excel.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/_excel.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5082338a5564441b6d2d1bdb442c01534fa960024413b0d6f1e76656ae9ebd3c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/embedding/_dashscope/_model.py: src/agentscope/embedding/_dashscope/_model.py changed 7 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 11 (its worst body is DashScopeEmbeddingModel._split_multimodal_batches at line 237), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(embedding): honor configured DashScope text parameters (#3367)\u201D; \u201Cfix(embedding): preserve DashScope response input order (#3564)\u201D; \u201Cfix(embedding): honor per-call api_key on the DashScope text path (#3465)\u201D; \u201Cfix(embedding): deep-copy DashScope multimodal cache identifier (#3533)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af3dfb4875688bbf6009ef678a8a7d270296574d04215966d055c0d8da0e02f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tool/_builtin/_read.py: src/agentscope/tool/_builtin/_read.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 Read._read_text_file at line 501), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): keep Edit from rewriting non-UTF-8 files lossily (#3322)\u201D; \u201Cfix(tool): validate read offset and limit at runtime (#3297)\u201D; \u201Cfix(tool): report deferred PDF read failures (#3057)\u201D; \u201Cfix(tool): isolate default Read input media types (#3161)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"49abd503cc3ef9d2a8160aba5de07ddf98d03a8b1e5bef372609e48785fd4a21"}},{"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 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is AgenticMemoryMiddleware.on_reply at line 574), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: add lower bounds to middleware and MCP config fields (#3783)\u201D; \u201Cfix(memory): extend the frontmatter read to the closing fence when the byte cap cuts it off (#3617)\u201D; \u201Cfix(message): return an empty string when no text blocks are present (#3565)\u201D; \u201Cfix(memory): keep frontmatter when the closing fence ends the text (#3345)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a81ec2bba8cf9bf089529b0941c5b0e616f95ee9e3ce2d38367817e67cc049"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/rag/_vdb/_qdrant.py: src/agentscope/rag/_vdb/_qdrant.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 6 (its worst body is QdrantStore.list_chunks at line 417), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(rag): normalize scores using the Qdrant collection metric (#3958)\u201D; \u201Cfix(rag): support null Qdrant metadata filters (#3055)\u201D; \u201Cfix(rag): enforce knowledge base scope during document deletion (#3222)\u201D; \u201Cfix(rag): support float metadata filters in Qdrant (#2783)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/rag/_vdb/_qdrant.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/_vdb/_qdrant.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"c629b9d85fbaeb05aa2f6e3702c7a2d1cf18e8ff4b69641922d311eea4949d97"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/rag/_knowledge.py: src/agentscope/rag/_knowledge.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 12 (its worst body is KnowledgeBase.search at line 197), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(rag): reject a non-positive top_k in search (#3876)\u201D; \u201Cfix(rag): avoid mutating chunks during document insertion (#2897)\u201D; \u201Cfix(rag): enforce knowledge base scope during document deletion (#3222)\u201D; \u201Cfix(rag): serialize knowledge base collection initialization (#2853)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/rag/_knowledge.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/_knowledge.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"422cb8810cbb5b019111f1d1cf249c89a8712b7ec1e3e395c17dbb4d694ce4c5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tool/_builtin/_write.py: src/agentscope/tool/_builtin/_write.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 10 (its worst body is Write.call at line 235), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): report Write failures as error chunks (#3627)\u201D; \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. 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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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/_utils.py: src/agentscope/tool/_utils.py changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is _utils._remove_title_field at line 127), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): infer default names for callable objects (#3963)\u201D; \u201Cfix(tool): keep resolvable annotations when one hint fails (#3484)\u201D; \u201Cfix(tool): preserve annotations and docstrings for partial functions (#3257)\u201D; \u201Cfix(tool): omit injected state from inferred function schemas (#3090)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"db10494d9bee07c7f7f1dd12c15d87f2a84fb7e857f67c2f800c62e3ce184d32"}},{"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 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is BackendBase._find_entries at line 603), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(workspace): resolve local search paths from the workspace directory (#2637)\u201D; \u201Cfix(tool): prevent CPython startup hangs in exec_shell on Windows (#3642)\u201D; \u201Cfix(tool): unlink local symbolic links without following targets (#3006)\u201D; \u201Cfix(tool): clarify Windows asyncio subprocess error in LocalBackend (#2837)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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/workspace/_local_workspace.py: src/agentscope/workspace/_local_workspace.py changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is LocalWorkspace.initialize at line 166), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(workspace): resolve local search paths from the workspace directory (#2637)\u201D; \u201Cfix(workspace): drain cancelled skill copies before releasing lock (#3844)\u201D; \u201Cfix(workspace): read SKILL.md as utf-8-sig in every skill path (#3177)\u201D; \u201Cfix(workspace): resolve case-insensitive skill directory collisions (#3075)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/workspace/_local_workspace.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/_local_workspace.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f38c0c19ba4574d5d7f85934f146368cff9ec485eee8dde8c61101135704da2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/app/_router/_schedule.py: src/agentscope/app/_router/_schedule.py changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is _schedule.create_schedule at line 67), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(schedule): respect selected start times when creating schedules (#3610)\u201D; \u201Cfix(schedule): respect selected end dates when creating schedules (#3547)\u201D; \u201Cfix(app): anchor a schedule\u0027s default start time to an absolute instant (#3101)\u201D; \u201Cfix(scheduler): validate cron before persistence (#2442)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2a3f51f4822cda51a5ae097387b27fa1cc468645def0539e62cd0d1cfb6ad2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/app/message_bus/_redis_message_bus.py: src/agentscope/app/message_bus/_redis_message_bus.py changed 7 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is RedisMessageBus.subscribe at line 679), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(message-bus): refresh in-memory queue ttl on push (#3420)\u201D; \u201Cfix(message-bus): trim the redis replay log exactly when a cursor is given (#3409)\u201D; \u201Cfix(app): protect Redis subscription cleanup from cancellation (#3158)\u201D; \u201Cfix(app): drain the wake-up queue atomically (#2476)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/message_bus/_redis_message_bus.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/message_bus/_redis_message_bus.py"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ee11f0ed7287f8bb2f91554ae35c8d9faa63d988993e1ce73c1c0ff731a071"}},{"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 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is ToolContext.cache_file at line 90), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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/app/workspace_manager/_docker_workspace_manager.py: src/agentscope/app/workspace_manager/_docker_workspace_manager.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 7 (its worst body is DockerWorkspaceManager._workdir_for at line 150), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(workspace): accept workdirs under a filesystem-root basedir (#3966)\u201D; \u201Cfix(deps): upgrade certifi, pip, uv and node to drop distrusted CAs (#3410)\u201D; \u201Cfix(workspace): clean up failed Docker initialization (#3098)\u201D; \u201Cfix(scheduler): bind a real workspace to scheduled sessions (#2410)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/workspace_manager/_docker_workspace_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/workspace_manager/_docker_workspace_manager.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"13aea73a708d5cddd61f6881b1c72496aed910beb9b614a7d094ba9a46745f70"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tool/_base.py: src/agentscope/tool/_base.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 5 (its worst body is ToolBase._path_in_allowed_working_path at line 403), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): recognise paths below a configured filesystem root (#3719)\u201D; \u201Cfix(tool): match Bash permission rules against every subcommand of a compound command (#3513)\u201D; \u201Cfix(tool): resolve symlinks before the dangerous-path check (#3033)\u201D; \u201Cfix(tool): only validate external result metadata on success (#2623)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_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/tool/_base.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0506b7af509dca2feef2e7df5024c8ae1732480a41029dee070e7af7be53c17"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/rag/_vdb/_milvus_lite.py: src/agentscope/rag/_vdb/_milvus_lite.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 8 (its worst body is MilvusLiteStore._query_all_rows at line 433), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(rag): load milvus collection before reads (#3433)\u201D; \u201Cfix(rag): reject nonpositive Milvus batch sizes (#3343)\u201D; \u201Cfix(rag): enforce knowledge base scope during document deletion (#3222)\u201D; \u201Cfix(rag): normalize distance scores so higher means more relevant (#2486)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/rag/_vdb/_milvus_lite.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/_vdb/_milvus_lite.py"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f837a9f3ab2c34d20cffa32e857e1cd99d879bd22d118276c5da992995c064"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/middleware/_tracing/_extractor.py: src/agentscope/middleware/_tracing/_extractor.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 11 (its worst body is _extractor._get_tool_definitions at line 109), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(middleware): preserve top_p=0 in tracing request attributes (#3520)\u201D; \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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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/tool/_builtin/_bash.py: src/agentscope/tool/_builtin/_bash.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is Bash.check_permissions at line 204), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(tool): reject Bash/PowerShell timeout below 1ms (#3309)\u201D; \u201Cfix(tool): require every subcommand to be a filesystem command for ACCEPT_EDITS auto-allow (#3519)\u201D; \u201Cfix(tool): match Bash permission rules against every subcommand of a compound command (#3513)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/tool/_builtin/_bash.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.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb7becd08fe159ea411ea9b40bcc4046019e297ee19b4a89a53a2b61f9dbe58"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/embedding/_embedding_base.py: src/agentscope/embedding/_embedding_base.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is EmbeddingModelBase.__call__ at line 201), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(embedding): reject nonpositive batch sizes (#3451)\u201D; \u201Cfix(embedding): join sibling batches after failure (#3148)\u201D; \u201Cfix(embedding): report the maximum batch time instead of the sum (#2967)\u201D; \u201Cfix(embedding): report cache source for fully cached multi-batch merges (#2690)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/embedding/_embedding_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/embedding/_embedding_base.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb9ae97e2791eb5cd22837687f23c2fe077777133f02eaf2e3266957893921b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/embedding/_file_cache.py: src/agentscope/embedding/_file_cache.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is FileEmbeddingCache._maintain_cache_dir at line 170), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(embedding): make the file cache key independent of dict order (#2936)\u201D; \u201Cfix(embedding): reject negative file cache budgets (#3582)\u201D; \u201Cfix(embedding): enforce a zero cache file limit (#2962)\u201D; \u201Cfix(embedding): keep the cache when a batch cannot fit its size limit (#2790)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d01f678cd105e69ca0b8e89c00076337365518f4a9c85310d27400dd20de3ea"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/embedding/_gemini/_model.py: src/agentscope/embedding/_gemini/_model.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 11 (its worst body is GeminiEmbeddingModel._split_multimodal_batches at line 225), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(embedding): honor embedding_cache on the Gemini multimodal path (#3529)\u201D; \u201Cfix(embedding): honor configured Gemini text parameters (#3361)\u201D; \u201Cfix(embedding): avoid blocking the event loop (#2703)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/embedding/_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/embedding/_gemini/_model.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"441d7ac115382a1847a5ccf46f1d0060624af729f9f9b68592cc1faf14b65e70"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/app/_service/_index_worker.py: src/agentscope/app/_service/_index_worker.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 9 (its worst body is _index_worker._build_parser_registry at line 46), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(app): ignore duplicate index tasks for ready documents (#3658)\u201D; \u201Cfix(app): normalize document content types before parser lookup (#2992)\u201D; \u201Cfix(app): clean up index worker tasks on cancellation (#2220)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_service/_index_worker.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/_index_worker.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30f302584c8c09dc1e79aea9f266464c8b9841c29f89256751b1db442c47a9f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/app/_service/_knowledge_base.py: src/agentscope/app/_service/_knowledge_base.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 9 (its worst body is KnowledgeBaseService.list_knowledge_base_views at line 207), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(app): clean up source blob when document registration is cancelled (#3657)\u201D; \u201Cfix(rag): preserve source blobs when knowledge base deletion fails (#3556)\u201D; \u201Cfix(app): replace deprecated HTTP 422 status constants- #3479\u3001 (#3479)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_service/_knowledge_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/app/_service/_knowledge_base.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c391d220cd59dd207b2967b720eddabc4a95c5d4df5afcd9cab5538748e628"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/middleware/_rag.py: src/agentscope/middleware/_rag.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 13 (its worst body is _rag._search_across at line 351), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(middleware): keep other knowledge bases\u0027 context when one fails (#3976)\u201D; \u201Cfix(rag): validate that the hint template is renderable (#2965)\u201D; \u201Cfix(rag): clean up static hints when streams close (#3363)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/middleware/_rag.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/_rag.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"801514a731fa78537278e08433879f4694fd5f21a5e9037adc5c78b0908101f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/model/_ollama/_model.py: src/agentscope/model/_ollama/_model.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 10 (its worst body is OllamaChatModel._parse_stream_response at line 238), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ollama): close the delegated provider stream (#3906)\u201D; \u201Cfix(ollama): implement _get_disable_thinking_kwargs so structured-output fallback can disable thinking (#3588)\u201D; \u201Cfix(model): give each Ollama tool call its own id (#3011)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/model/_ollama/_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/_ollama/_model.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6e8a88056c74c65ef236702b87d8872bbf24dc2898ec50fd726a6c47789e8b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/rag/_vdb/_mongodb.py: src/agentscope/rag/_vdb/_mongodb.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 4 (its worst body is MongoDBStore._wait_for_index_ready at line 208), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(rag): preserve literal metadata values in MongoDB listings (#3591)\u201D; \u201Cfix(rag): enforce knowledge base scope during document deletion (#3222)\u201D; \u201Cfix(rag): bound MongoDB search candidates (#3316)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/rag/_vdb/_mongodb.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/_vdb/_mongodb.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"be32d9f00bd8a4b910823633bb671294fb005b555a5f7f4f2ddb771f2ff5a2f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/middleware/_budget.py: src/agentscope/middleware/_budget.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 9 (its worst body is ReplyBudgetControlMiddleware.on_reasoning at line 191), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(middleware): retire the budget hint at a new reply boundary (#3599)\u201D; \u201Cfix(middleware): don\u0027t block structured output when the budget is spent (#3027)\u201D; \u201Cfix(middleware): prevent KeyError in budget middleware when ReplyEndEvent is swallowed (#2419)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/middleware/_budget.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/_budget.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"38968b6def53eebeee9efa06e4210aadd33a2291373cd4206f299ed5ccb743d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/embedding/_openai/_model.py: src/agentscope/embedding/_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 10 (its worst body is OpenAIEmbeddingModel._call_api at line 115), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(embedding): isolate OpenAI caches by API endpoint (#3142)\u201D; \u201Cfix(embedding): let a per-call dimensions override the OpenAI default (#3468)\u201D; \u201Cfix(embedding): tolerate missing OpenAI usage (#3199)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/embedding/_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/embedding/_openai/_model.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ede798e158d2f9f55bfb189c4c92b84116002454b759b39f516af9cd6828d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/app/_router/_workspace.py: src/agentscope/app/_router/_workspace.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 10 (its worst body is _workspace.read_workspace_file at line 506), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(app): remove server-path skill import endpoint (#3536)\u201D; \u201Cfix(app): replace deprecated HTTP 422 status constants- #3479\u3001 (#3479)\u201D; \u201Cfix(app): make workspace skill deletion idempotent (#2892)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \u002B08:00\u0027 --full-history --no-merges -- src/agentscope/app/_router/_workspace.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/_workspace.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcf4aa2bfd8fe0f921192bd075e7b8ba5a0343f3eb2fa841365ee91b66b7c7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: src/agentscope/tool/_toolkit.py: src/agentscope/tool/_toolkit.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 15 (its worst body is Toolkit.call_tool at line 225), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(mcp): support mcp 2.x Python SDK, unpin mcp\u003C2.0.0 (#2216)\u201D; \u201Cfix(tool): apply schema-guided repair to tool arguments (#2496)\u201D; \u201Cfix(tool): distinguish inactive tool groups from missing tools in check_tool_available (#2316)\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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":"685b1585daf61af4ee95bdba414234ec278f5adf1a781e72392202370b172b68"}},{"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), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(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-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 17:12:22 \u002B08:00\u0027 --until=\u00272026-11-13 17:12:22 \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":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 11 significant file(s) lose their only recent owner: scripts/issue_triage.py, src/agentscope/sop/_schema.py, src/agentscope/app/_tool/_team_say.py, src/agentscope/app/channel/_clients.py, src/agentscope/app/middleware/_state_change_middleware.py, src/agentscope/permission/_types.py, src/agentscope/app/storage/_utils.py, src/agentscope/app/_router/_schema/_agent.py (\u002B3 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, 11 significant file(s) lose their only recent owner: scripts/model_examples/openai_response_call.py, scripts/model_examples/deepseek_call.py, scripts/model_examples/xai_call.py, scripts/model_examples/openai_chat_call.py, scripts/model_examples/openai_chat_multimodal.py, scripts/model_examples/moonshot_call.py, scripts/model_examples/_utils.py, src/agentscope/middleware/_tracing/_converter.py (\u002B3 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): 3 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 (25 single-owned of 386 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 386 of the 574 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)) \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/asr/_asr_base.py, src/agentscope/app/middleware/_protocol/_base.py, src/agentscope/rag/_parser/_pdf.py."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"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":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f983b5b7bbb0b72deaa0b24e7731571da118a929ce5b1e4a03afd52211503b4"}},{"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":944}}}],"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: # 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: 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":2523}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc4d13a8368ce8c759129a46d81218324da74bd0b254b1eb09700129e802d40"}},{"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":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"5676095e21fec812cf59066ccd5a12cee503692017e7cbee8f623ea290f93887"}},{"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":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad79830bd6e36b9483df04c1a8e77120fa654e4aaee996a85fe94b3e14dfe422"}},{"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":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5b6922a5977f7821914f04b9b0dd10878784c877cac07cd9647bf2b6c96b45"}},{"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: 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":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d8fe5f7993516bb47005bdf0de9ba52878a84ddce18f361ead1fd0037f016a"}},{"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":"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":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"74b63bc21f92caeaa762df976ea82ed53252a83b9cc267e91238ef9664d732c1"},"properties":{"dependency":{"package":"dompurify","version":"3.4.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d4878e58a2bf9525f3b8542adfb3099d33141a73029b1247e67c05c8e2a8c15"},"properties":{"dependency":{"package":"next","version":"16.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1157974fd2a0de8710fdfc0b977d376d55dbd7829b454b20267522bbc31c3e11"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"14b371071ef331694c232542b6337aacd9720fab08b81df439ad6ff02f02c0a0"},"properties":{"dependency":{"package":"shell-quote","version":"1.8.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f072b8b8f23410a6fa12d33629eb0251559a804cdffa707bc33efadb6dc31e9f"},"properties":{"dependency":{"package":"@modelcontextprotocol/sdk","version":"1.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c2b3f7d7e3f3b7e062887cc9a6267d1f77112152070ebbcea2e36aa3c585c9c"},"properties":{"dependency":{"package":"body-parser","version":"1.20.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f7e00e65cda163cdf4581eff8d9724ce13a34a1366c425ec07fa733b35ac6762"},"properties":{"dependency":{"package":"body-parser","version":"2.2.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dad63c317223b64e77b080b2ab622769b729c6377b71427efa0e5faa304473a3"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6de1066deab28fec1a7dc80b2eef739d209a074a408ad5b94c187d02dd27f4f8"},"properties":{"dependency":{"package":"browserslist","version":"4.28.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fafe06c685c583cbc553041057ef031501bb858f84d4dc688ada71daf39e176b"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b03e9ef52ebd812a5cb463d4962a56f38ff8cce6434ddfbed802e1abdf041ec"},"properties":{"dependency":{"package":"hono","version":"4.12.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9d1fc2b9b8e7b2ec93da826c3ac9848e0eab2a32342773de8ed1497ba39e0760"},"properties":{"dependency":{"package":"ip-address","version":"10.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"302ad626b8a9884c05886041264e8eb2082409db8d89ebaf5ee84314e7543c5c"},"properties":{"dependency":{"package":"js-yaml","version":"3.14.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ca2852253ae1e4d4ca1706c4371fa2d774f57c3c6de352c55939f16d5fdead7"},"properties":{"dependency":{"package":"js-yaml","version":"4.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c15f45875dd5374dca90b3c5b19861b553388d098e15d2acceec0a15a8b04529"},"properties":{"dependency":{"package":"nanoid","version":"3.3.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"765a3a51953ddd6578775d825eaba9be3fe95d015dcb7c9258624298272bdca7"},"properties":{"dependency":{"package":"postcss","version":"8.4.31","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"432ba37fbe5f5ed230566a4e534936dc1fcb61707829947b25673e2d6073447a"},"properties":{"dependency":{"package":"postcss","version":"8.5.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a1b6de9184eca52693ee0e70d9589cb3a6f205b3dd1e62bbc021f859f543954"},"properties":{"dependency":{"package":"react-router","version":"7.15.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d4bd9dfadab26bf380cdf11e42daa2e91f732129bd325b877aa347ece266bad"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"af21a86ffde3d4ba65be7286003305eb33fd3a0b80d32dc9d5994fa672009ebb"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4b6008056b2a73e071975266d6cd7ea1fa657121846f5be018537efae51f2648"},"properties":{"dependency":{"package":"undici","version":"7.28.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5ad99edade2847ef3c6249b15d0a3ded04a63a032a80818cfd1c9b98f1c5424"},"properties":{"dependency":{"package":"vite","version":"8.0.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3258a6863c1eb72b3c178d6e2e9a772ff14e640b8d8993e1f77d0c06bf39e061"},"properties":{"dependency":{"package":"zod","version":"3.25.76","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f3136a27c47b2e167a2d7b3a735f64e0f5b05e6abcbcfbd0749a4b68aef40db6"},"properties":{"dependency":{"package":"zod","version":"4.4.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fc60ce8d8fec59a7ed7bc36f142ad9c3d8f075e563212b7b0d878156eae68ac"},"properties":{"dependency":{"package":"@hono/node-server","version":"1.19.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d71f2444942a2e600c06b8028e286b5e39a7587790bdba330855c9161c696bc8"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.33","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"421d385db3bea7e29af360541e21fe5da4ebca95ddfdae9b15127bd534d43976"},"properties":{"dependency":{"package":"mermaid","version":"11.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0864ab1d9c976afea7a6135d8ca3aebadc2f7fad0246f1b747936b0c8301945a"},"properties":{"dependency":{"package":"minimatch","version":"10.2.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"921045e8922426971f19ce76843b92f5eae42d8e98c68016c4755ced55a3de28"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"6.0.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d61b0fdc9a304486bcc475161537d277fb8c8292d3d1d57b1ebb09d48092f458"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"7.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8419c29f52335c36c2bbaeed4a65f9df2a671c1067d75efead45d2167fefaf3c"},"properties":{"dependency":{"package":"qs","version":"6.15.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a5079105dab3ab424296cad4c6ec82c0d2b80ae1c1a849d6288dcb59db3015e"},"properties":{"dependency":{"package":"@babel/core","version":"7.29.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aac8974b25e71c1fac1a025ed721376c59581f4351e53e4d3e8d9e4d0958f75c"},"properties":{"dependency":{"package":"deepmerge","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a95e36b8dc8230881ce7dbc8d9a01f17b3ba44e695a3fc155f6b023bd83751e"},"properties":{"dependency":{"package":"katex","version":"0.16.47","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/workspace/_bubblewrap/_bubblewrap_backend.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7dfc626c78e8028858998121e16c0f3c67f6fa7d8ec9e4085a16e878c39696"}},{"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":"AX6","level":"note","message":{"text":"Fat interface: MessageBus (20 abstract methods): \u0060MessageBus\u0060 declares 20 abstract methods: \u0060queue_push\u0060, \u0060queue_drain\u0060, \u0060queue_delete\u0060, \u0060log_append\u0060, \u0060log_read\u0060, \u0060log_trim\u0060, \u0060publish\u0060, \u0060subscribe\u0060, \u0060acquire_lock\u0060, \u0060is_locked\u0060, \u0060try_lock\u0060, \u0060unlock\u0060, \u0060registry_set\u0060, \u0060registry_set_if\u0060, \u0060registry_pop\u0060, \u0060registry_del\u0060, \u0060registry_exists\u0060, \u0060registry_getall\u0060, \u0060registry_get\u0060, \u0060registry_drop\u0060. Counted over its \u0060@abstractmethod\u0060s (and abstract properties), once per name; concrete methods are helpers an implementer inherits, not a burden, and \u0060_\u0060-prefixed members are not counted. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/message_bus/_base.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef76aef6ffe574408caa2eb0286391b0151da023789544e907dcb4b08690c962"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: StorageBase (57 abstract methods): \u0060StorageBase\u0060 declares 57 abstract methods: \u0060upsert_credential\u0060, \u0060list_credentials\u0060, \u0060get_credential\u0060, \u0060delete_credential\u0060, \u0060upsert_mcp\u0060, \u0060list_mcps\u0060, \u0060get_mcp\u0060, \u0060get_mcp_by_name\u0060, \u0060delete_mcp\u0060, \u0060upsert_skill\u0060, \u0060list_skills\u0060, \u0060get_skill\u0060, \u0060get_skill_by_name\u0060, \u0060delete_skill\u0060, \u0060upsert_agent\u0060, \u0060list_agents\u0060, \u0060get_agent\u0060, \u0060delete_agent\u0060, \u0060upsert_session\u0060, \u0060set_session_team_id\u0060, \u0060update_session_state\u0060, \u0060list_sessions\u0060, \u0060delete_session\u0060, \u0060get_session\u0060, \u0060list_sessions_by_schedule\u0060, \u0060list_sessions_by_channel\u0060, \u0060upsert_schedule\u0060, \u0060get_schedule\u0060, \u0060list_schedules\u0060, \u0060delete_schedule\u0060, \u0060list_all_schedules\u0060, \u0060upsert_message\u0060, \u0060delete_message\u0060, \u0060get_message\u0060, \u0060list_messages\u0060, \u0060upsert_team\u0060, \u0060get_team\u0060, \u0060list_teams\u0060, \u0060delete_team\u0060, \u0060upsert_knowledge_base\u0060, and 17 more. Counted over its \u0060@abstractmethod\u0060s (and abstract properties), once per name; concrete methods are helpers an implementer inherits, not a burden, and \u0060_\u0060-prefixed members are not counted. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_base.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa98b2d64dbb74d1c9936bdd0eb272887923cad4163c3854758cad9eb5b4119b"}},{"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":"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 14 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/github-monitor.yml"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060examples/web_ui/backend/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/web_ui/backend/package.json"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5680db36c06ee1b0f961b9c9d9e4043209b90cc330803d56baa0529f4fad58a4"}},{"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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/k8s-workspace.yml"},"region":{"startLine":54}}}],"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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/k8s-workspace.yml"},"region":{"startLine":54}}}],"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":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() outside the migrations: This repository versions its schema (Alembic), but SQLAlchemy create_all() here builds or alters the schema from the model as well, outside that history \u2014 the two paths can disagree about the shape, and a change made this way is never a reviewed migration. Turn it off and let Alembic own the schema."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"47107a53c8eea795b563a08abcd51eff56f0da1daa8e409abdd010e305537833"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() outside the migrations: This repository versions its schema (Alembic), but SQLAlchemy create_all() here builds or alters the schema from the model as well, outside that history \u2014 the two paths can disagree about the shape, and a change made this way is never a reviewed migration. Turn it off and let Alembic own the schema."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_storage.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"960ecc34eb77318fe9887ff02736a448ae272fe60b81e12dcc40303f090bc59e"}},{"ruleId":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() outside the migrations: This repository versions its schema (Alembic), but SQLAlchemy create_all() here builds or alters the schema from the model as well, outside that history \u2014 the two paths can disagree about the shape, and a change made this way is never a reviewed migration. Turn it off and let Alembic own the schema."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/storage/_sql/_alembic/versions/0001_initial.py"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c55fc6c794fc548a6e7b2f891b7f6604db40900666610181ba7b2b414caef09"}},{"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":"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":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24c12f4a649001f55e7688deaa49d95f81c9dd57dae72735340a2f4b176a3fd"}},{"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":1085}}}],"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":1079}}}],"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":2586}}}],"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":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"702d7d38f7e3b88b58569519b0ce6c10689688031c08fe725a5865e24898f5f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr( details, \u0022cached_tokens\u0022, 0, ) or 0\u0060 appears character-identically in 3 files \u2014 src/agentscope/model/_moonshot/_model.py, src/agentscope/model/_openai_chat/_model.py, src/agentscope/model/_openai_response/_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/_moonshot/_model.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e219bcfdda0abe5572294e84babcd8a2855583c270f2f6f13828928d9b77c6"}},{"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":351}}}],"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":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae4428e3e316e37fc427ee416bdbfa4b068099b97e3719af12eb4385260eb1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(response, \u0022candidates\u0022, None) or []\u0060 appears character-identically in 2 files \u2014 src/agentscope/model/_gemini/_model.py, src/agentscope/tts/_gemini/_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/_gemini/_model.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1aa3de06a788cd76a55342c051f3b6a6d79673e13875e619ae859ecd1c1403"}},{"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":835}}}],"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":502}}}],"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":451}}}],"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":489}}}],"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 isinstance(voice_id, str) or not voice_id\u0060 appears character-identically in 2 files \u2014 src/agentscope/tts/_dashscope/_voice_cloning_client.py, src/agentscope/tts/_openai/_voice_cloning_client.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/_voice_cloning_client.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea32149a2d4d0f0958cace1267393667d4f2f28a18cc382882537978169c926"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.client.vertexai and not os.getenv( \u0022GOOGLE_GENAI_API_VERSION\u0022, )\u0060 appears character-identically in 2 files \u2014 src/agentscope/embedding/_gemini/_model.py, src/agentscope/model/_gemini/_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/embedding/_gemini/_model.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"9469a2441d860fc0442be513dd5a4f1e9ebfdac4733aaca771347b26648d6ca1"}},{"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: \u0060override is None or override.get(\u0022hidden\u0022)\u0060 appears character-identically in 2 files \u2014 src/agentscope/asr/_asr_model_card.py, src/agentscope/realtime/_model_card.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/asr/_asr_model_card.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3b5b9977922284c2333fc5576a7479a821e43c0fda7f72e1617b99061a0898"}},{"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":304}}}],"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":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af09f52d2cfa86d4ec32c9142f8536f4ed7ca6193e5cf55429cc16039154974"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.cold_start_length and len(self._cold_start_buffer) \u003C self.cold_start_length\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":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"567cfc9a007d04d21b1b2376d4b84aa356e7be8c14dd9de38079ee58df207300"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060task is not None and task is not asyncio.current_task()\u0060 appears character-identically in 2 files \u2014 src/agentscope/agent/_realtime/_agent.py, src/agentscope/app/_service/_webrtc_session.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/_realtime/_agent.py"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"874f80aa93156ab17a4826536c712aa5f0218415cc0877a6d599b28368a1aae6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tool.annotations.read_only_hint or False\u0060 appears character-identically in 2 files \u2014 src/agentscope/tool/_adapters.py, src/agentscope/workspace/_gateway_client.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/_adapters.py"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d501fbc0d907ac2dc0eb8b627fcf5f15d2567365a6f47c1c31d39d0984e58c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tool_call in choice.message.tool_calls or []\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":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0fd6195d89aec79d2811be8e4463fd0524650611c4b24939cf567ac96db319"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tool_call in getattr(delta, \u0022tool_calls\u0022, None) or []\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":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a8b7746808c2a2377b2ab933a9ed6fb3c9c44e9953085ba20e5118c48b5d0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060uses_session_chat and session.state.has_awaiting_tool_calls( agent_record.data.name, )\u0060 appears character-identically in 2 files \u2014 src/agentscope/app/_router/_realtime.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/_router/_realtime.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"934021c98ea614c5892702a3960547c4a4e0e3b9d22316dd2d210ca4b0b1c715"}},{"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 556 is called with an argument built by \u0060list(data)\u0060 (line 556), 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":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a66bf275739550b4665cdbf0cc4637b269166ab3b4166e42c0a67806868c314"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 563 is called with an argument built by \u0060[ranked[i].chunk.source for i in ids]\u0060 (line 565), 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":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e5123acfe2da94c1cff425cceaf715b7fc917689a86b66cec6ffd4b4c7072d"}},{"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":537}}}],"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":721}}}],"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":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba86c192c2d241499f530ed8861c74ce19cb304eea1076ad029256f2df838ade"}},{"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":228}}}],"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":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"590d7ea1fb473c98851f112b1ca94bb6321affe8309403865b353a5be633dd46"}},{"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":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcedd29a4ffcf6fa0fd6477492b92aa44659f9163fb7a14a082e2f7f15d1f00"}},{"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 (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":647}}}],"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. 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":236}}}],"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":244}}}],"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/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 (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":84}}}],"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/_builtin/_bash.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb08fa66cccaea7e1564a48a8bbef966fa312751bc6922eb7d1a48310952da1"}},{"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":247}}}],"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_parser.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d207e7977aa921b476249e53f1205c2b2139126cfc82233266d3be13166e604"}},{"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/middleware/_steering.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a614256b6f7699a513028763577a4b2472dd7f418fb369bd17ef64c085fff4f2"}},{"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":315}}}],"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":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c91c93c1592eb9a501c665b681eabacf1de433f6c664a12340c879d6e4304f0"}},{"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":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2095e3ea0f27ba9dff6cf171bb2dda8e8b95cb10d49503c67c18723c31c9e7e"}},{"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":636}}}],"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":669}}}],"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":782}}}],"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":952}}}],"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":1001}}}],"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/mcp/_mcp_client.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"0440e068478a1786cc403bf49a1a46887b7e16146a9cf555fe399bad75da6674"}},{"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. 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/_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/_docker_workspace_manager.py"},"region":{"startLine":452}}}],"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/_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/_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/_opensandbox_workspace_manager.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ee28cb8d2ef135f3f45c344b026c3aec484ec69d46848618a5d8b25afd7fc4"}},{"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. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/agentscope/app/message_bus/_redis_message_bus.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca74077ae72d69459ee4580a133d92c8bfe390384fce65cbe2e9a0879f7b7e99"}},{"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":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc20608fc22a80734a8c00b05e8f55abe487cbc412cfcf40a683ef31c53e6cd6"}},{"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/channel/_stream.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a426b9948e4655a6ccd647d017481a34cd0e87fab51ac8c74c03aea178cdd3"}},{"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":3105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f6c444229dbb5200bf8899af8fe3a17d88336e1429237bb24774a9da98d93b"}},{"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":952}}}],"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":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"57eb38de01302f3967771fc8cb981e966189f3fa78e82ed2b5270353138aa114"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060extract_command_prefixes\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/tool/_builtin/_bash_parser.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da1651691d3532bc394efaad1f9c5e16ca2835e22c07aa4b13d6c5e620b0639"}},{"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":137}}}],"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-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-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":91,"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."]}]}