Closed
[Bug]: Unclosed file handle in check_ub_usage.py #238
liangjinxuan-2026Add on 6 days agoClosed at 4 days ago
6 days ago Associated pull request
jon_jin
6 days ago Comments:
6 days ago Comments:
@liangjinxuan-2026 收到,按缺陷反馈处理(精简口径,族第四波)。复述与核实:
复述:plugins-community/collaborative-agent-kernel-evolution/skills/dsl-baseline-generation-easyasc/scripts/check_ub_usage.py 单处文件句柄未关闭(DSL 文件读取后未关,SIM115 类),长跑批下句柄累积泄漏,以 context manager 修复;本地验证 0 违规。
载体核实(2026-11-23 实查):自解载体 436 实存(本单后数秒,标题吻合)——assign 已转你名下。
问询(族级统一):①同形态全仓清点结论写进任一 PR 描述(句柄类是否清零,防后续波次再撞);②Fixes 挂法(SOP-20)补办。
族背景一句:第四波(前三波 cannbot 3 + skills 8 已受理)。
—— jon_jin


6 days ago Assign liangjinxuan-2026 as responsible person
4 days ago Close issue
4 days ago changed custom state from 待办的 to 已完成
3 days ago Added label: resolved
Description
Use
with open(dsl_path, encoding="utf-8") as fp:when reading the DSL source file (ruff SIM115).Affected File
plugins-community/collaborative-agent-kernel-evolution/skills/dsl-baseline-generation-easyasc/scripts/check_ub_usage.pyVerification
Verified locally with
ast.parseandruff check --isolated --select SIM115(0 issues).