chore: add regression and user-impact review to the PR workflow #4023
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 446 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.365
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4023"
general
weight: 0.35
HelloWorldU
Requirement or Bug
无关联 issue。多个 PR 合入后对现有用户造成回归(#3492 → #3900,#3931 → #4015,#2961 → #3167,#3964 → #4013),共同点是没有人回答"谁在依赖旧行为",本 PR 把这个问题写进 PR 流程的三处:作者填表、Codex 自动 review 规则、人工触发的评审 skill。
Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
三处共用一条判据:改动前能工作的任何输入(配置键、环境变量、命令行参数、provider 响应形态、旧版本写的会话数据、客户端请求、hook 载荷)改动后必须行为不变,除非 PR 明确声明并给出退路。
评审 skill 的流程变化:
影响等级只由改动事实决定,changeset、文档、guard 测试只出现在补救核对里:
验证方式是把新 skill 回放到三个已合并 PR 上盲审:
/reload不覆盖 AGENTS.md。两次盲审的自评各指出一条清单缺口(watch 默认值、git 仓库形态人群),已按 skill 的"复盘回填"规则补进 surfaces.md。本 PR 自身收到 Copilot 4 条、Codex 8 条评论:11 条已采纳(klient 与 kosong 两条按核实的消费方范围收窄),1 条保留
disable-model-invocation原设定并改为从 AGENTS.md 删除调用指令,各线程已回复。Behavior Changes and Affected Users
产品运行时行为:None。diff 不含任何
src/文件,.agents/、.github/与 AGENTS.md 不进发布包。贡献流程的变化:
| 行为 | 变化前 | 变化后 | 谁在依赖旧行为 | 退路 |
|---|---|---|---|---|
| PR 模板的影响范围一节 |
Impact Scope自由文本 | 改名Behavior Changes and Affected Users,要求填行为变化表;检查清单多一项 | 所有 PR 作者,含外部贡献者 | 已开的 PR 不受影响;review-pr 对旧节名按同一标准核对 || Codex 自动 review | 只有通用检查 | 读 AGENTS.md 的
## Code Review Rules,会多出回归类评论并引用规则 | 所有 PR 作者 | 规则要求双证据控制噪音;本 PR 自身的一轮评审是样本 || 每个 agent 会话加载的根 AGENTS.md | 1638 词 | 2056 词,多出评审规则一节 | 在本仓库工作的所有 agent | 无;如需精简可砍到约 300 词而不伤触发条件 |
| review-pr 的输出语言 | 固定中文 | 跟随用户当前语言 | 使用 review-pr 的维护者 | 不需要 |
| PR 描述语言 | 未规定,习惯英文 | 跟随用户当前语言;标题、changeset、模板节标题固定英文 | 所有 PR 作者 | 不需要 |
| changeset 措辞 | 只写变了什么 | 默认翻转或删除行为时还须写明失去的行为,有退路则写退路 | 写 changeset 的作者 | 不需要 |
| review-pr 的触发方式 | 仅用户触发 | 不变;AGENTS.md 不再指示 agent 调用它 | 无 | 不需要 |
受影响模块:无代码模块。测试覆盖:无自动化测试;验证方式见上文的三次回放。
Checklist
/approve). 无 issue,内部流程改动,问题见上文。gen-changesetsskill, or this PR needs no changeset. 不进发布包,无需 changeset。gen-docsskill, or this PR needs no doc update. 用户文档不描述 PR 流程。