Skip to content

feat(cw): 运行时冒烟门禁 + medium 自动合并 + evidence-check 误判修复 - #5

Merged
lqtdys merged 1 commit into
mainfrom
feat/runtime-smoke-and-risk-tiers
Oct 25, 2026
Merged

lqtdys merged 1 commit into
mainfrom
feat/runtime-smoke-and-risk-tiers

Conversation

@lqtdys

@lqtdys lqtdys commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

风险等级: medium

变更

  1. 运行时冒烟门禁(P0):新增受管脚本 scripts/test_runtime_smoke.py —— headless Chrome + 纯标准库 CDP(最小 WS 客户端,零依赖,PEP 668 友好),检查控制台零异常 + [data-chart]/[data-illustration] 容器挂载。红/绿 fixture 配对自检。受管文件 24 → 25。
  2. 证据规范 §3.0 运行时态(P1+P4):evidence-capture.md 6 类 → 7 类证据;UI 票 QG-5 证据至少含一项运行时证据;补 file:// 须起 http.server 说明。
  3. PR 风险分档(P2):pr-automation.sh risk-low/medium auto-merge,risk-high 人工合并(回归锁重写)。
  4. evidence-check 误判修复(P3):断言强度判据改二选一 —— diff 含测试文件变更 OR PR 正文含 QG-5 证据块;纯修复 PR 不再恒红。

验证

$ ./test/install-update-e2e.sh
通过 341 · 失败 0 · 全部通过 ✅

$ ./test/rollout-check.sh ../md-bundle ../mdpkg ../clairis ../contentweave
消费仓 4 个 · 通过 12 · 失败 0(覆盖数 25 一致)

$ python3 scripts/test_runtime_smoke.py scripts/test_runtime_smoke_fixture_good.html
✅ PASS (exit 0)   # 绿端
$ python3 scripts/test_runtime_smoke.py scripts/test_runtime_smoke_fixture.html
❌ FAIL (exit 1)   # 红端配对

Fixes #1, fixes #2, fixes #4, fixes #5

- 新增受管脚本 scripts/test_runtime_smoke.py(headless Chrome + 纯 stdlib CDP,
  控制台零异常 + data-chart/illustration 容器挂载检查;红/绿 fixture 配对自检)
- evidence-capture.md 6 类 → 7 类证据:UI 票 QG-5 至少含一项运行时证据;
  补 file:// 须起 http.server 的环境约束
- pr-automation.sh 风险分档:low/medium auto-merge,high 人工合并
- evidence-check.yml 断言强度判据改二选一:测试文件变更 OR PR 正文 QG-5 证据块
- 受管文件 24 → 25;e2e 计数同步;VERSION 1.13.0
@lqtdys
lqtdys merged commit 0479293 into main Oct 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] pr-automation.sh --resume-branch 收口路径失效:gh pr view --head 报 unknown flag

2 participants