Your Review Queue Is Now an Agent Inbox: A Triage SOP With Three Roles and a Gate Script
说明与用途
triage 工作流将代理 PR 分配给三种角色,并按风险分级,确保高风险更改得到人工审查。
问题
Agent-generated pull requests appear finished and uniform, causing reviewers to stop questioning and potentially miss issues.
结果
The SOP reduces unchecked agent diffs, ensures human oversight for high‑risk changes, and distributes review workload evenly.
工作流
- Define three roles and rotate Gatekeeper weekly
- Require agents to add an Author‑Agent trailer and agent‑authored label
- Reject PRs lacking a trailer or named author of record
- Run triage.py to classify PR into tiers A, B, or C
- If tier C, gatekeeper escalates to Reviewer of record
- If tier A/B, agent may continue and PR can be merged by Reviewer of record
证据
Make authorship machine-readable, because reviewers unconsciously extend more trust to diffs they believe a colleague wrote.
The script below classifies a diff into three tiers using changed paths and diff size.
- 记录日期: 2026-10-17T06:41:10.593Z