From 21efe866fa93d22bf7e2449150c7bd4b556b11c6 Mon Sep 17 00:00:00 2001 From: "agent.develop" Date: Tue, 22 Sep 2026 17:49:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor(pbls/rbac):=20M11b-2c-T3=20=E5=93=8D?= =?UTF-8?q?=E5=BA=94=20QC=20#14=20=E2=80=94=E2=80=94=20=E5=88=A0=E9=99=A4?= =?UTF-8?q?=20collect()=20=E4=B8=8D=E5=8F=AF=E8=BE=BE=E5=88=86=E6=94=AF=20?= =?UTF-8?q?got=20is=20None=20and=20has=5Fscript=20=E5=8F=8A=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=20stat=20=E5=8F=98=E9=87=8F=20has=5Fscript=EF=BC=88?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=AD=98=E5=9C=A8=E6=80=A7=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=B7=B2=E4=B8=8B=E6=B2=89=20=5Fload=5Fmodule=5Fpaths=EF=BC=89?= =?UTF-8?q?=EF=BC=8Cpy=5Fcompile=20OK=EF=BC=8C--check=20total=3D277=20wild?= =?UTF-8?q?card=3D0=20aggregation=5Ffailures=3D0=20PASS=20=E4=B8=8D?= =?UTF-8?q?=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/load_path.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/load_path.py b/scripts/load_path.py index 58137f0..e839b0a 100644 --- a/scripts/load_path.py +++ b/scripts/load_path.py @@ -248,8 +248,8 @@ def collect(): """ merged, notes, failures, conflicts = {}, [], [], [] for mod in MODULES: - script = os.path.join(WS_DIR, 'modules', mod, 'scripts', 'load_path.py') - has_script = os.path.exists(script) + # 脚本存在性判断已下沉到 _load_module_paths()(got is None 即代表脚本缺失), + # 此处不再重复 stat(M11b-2c-T3 QC 退回意见 #14:清理不可达死代码)。 got, err, failed = _load_module_paths(mod) if mod == 'pbl_evidence': @@ -291,8 +291,8 @@ def collect(): notes.append('%s: aggregated %d paths%s' % (mod, len(got), tag)) if failed: failures.append('%s: %s' % (mod, err)) - if got is None and has_script: - failures.append('%s: script exists but nothing aggregated' % mod) + # 注:此处无需再判 got is None —— 上方各分支在 got is None 时均已 continue + # (M11b-2c-T3 QC 退回意见 #14 删除的不可达分支)。 for c in conflicts: notes.append('[conflict] ' + c)