Skip to content

chore: 近一周 PR 技术债清扫——构建产物出库 + 死代码移除(行为保持) #392

Closed

Description

@randypanding

近一周(2026-08-19 起约 100 PR,#176..#390)全量复查后的机械技术债清扫卡。

范围(全部行为保持):

  1. 误提交的 Python 编译产物出库(scripts/pycache、specs/*/suite/pycache 共 4 个 .pyc;源自 feat(butler): ADR-0074 落地——孤儿标签移除 + deadman 双层触发 + hc.io 实配(ADR-0074) #230/feat(governance): T-14 机器化第一面 + 红队 required check 落地修正(W2-C3 .github#275,ADR-0083) #336/spec(IR-0004): IR-0004 Cloudbird-Software/.github#315 条款级规格 rev4(ADR-0050,红队四轮 survived) #338)+ .gitignore 防复发
  2. governance/metrics.py:死变量移除
  3. governance/dashboard-update.py:TemporaryDirectory 块内恒真 isdir 防御删除
  4. scripts/sli-report.sh:if False else 死分支、die 后不可达残串清理

明确不碰:gate/verdict/drift 语义、pinned SHA、REPOS.yaml 及治理数据、workflows YAML、trae 备份产物。随卡另报两处行为级缺陷(不做行为变更):escalate-test-issue.py f-string 引号语法错误、sli-report seed 用加盐 hash 的可复现性问题。

Activity

  1. randypanding commented on Sep 2, 2026

    @randypanding
    ContributorAuthor

    核验关闭(2026-09-02 全量 issue 巡检):

    卡内 4 项范围逐一复核,均已完成:

    1. ✅ .pyc 编译产物出库(3 个)+ .gitignore 防复发(__pycache__/、*.pyc 已在位)——PR chore: 技术债清扫收尾——.pyc 出库 + escalate-test-issue.py 语法修复(ADR-0061/ADR-0070) #478
    2. ✅ governance/metrics.py 死变量移除——先前 PR 完成(chore: 技术债清扫收尾——.pyc 出库 + escalate-test-issue.py 语法修复(ADR-0061/ADR-0070) #478 提交说明确认)
    3. ✅ governance/dashboard-update.py TemporaryDirectory 恒真 isdir 防御删除——当前仅存正常 tempfile.TemporaryDirectory() 用法(L534)
    4. ✅ scripts/sli-report.sh if False else 死分支 + die 后不可达残串——当前文件 grep 无 False 残留

    另报的 escalate-test-issue.py f-string 语法错误亦已在 #478 修复。实测 git ls-files | grep .pyc 为空。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions