Repository navigation
Add an advisory independent-approval observer before cutover - #441
Conversation
Count two eligible approvals independently of other reviewers' change requests. Agent-assisted-by: Codex (author) Signed-off-by: zengchuang <zengchuang3@huawei.com>
|
Full review of 1. Can the status be spoofed? (question, potentially blocking) 2. Bot / App approvals (open from #440 point 4). L38 only requires 3. Docs during the rollout window. 4. Test gaps (non-blocking). 5. Minor. The workflow at The cutover order in the PR body (prove the status on a qualifying and a nonqualifying PR first, then make it required, then lower the native count, then verify in the merge box) matches what I asked for. Please also post the ruleset JSON from before and after the switch in #440. |
david6666666
left a comment
There was a problem hiding this comment.
One reviewer-eligibility concern before cutover.
| @@ -0,0 +1,35 @@ | |||
| name: CI — independent approvals | |||
|
|
|||
| on: | |||
There was a problem hiding this comment.
Can we revalidate reviewer eligibility at merge time? A prior success should not remain authoritative after repository access changes.
There was a problem hiding this comment.
Addressed the cached-eligibility assumption in synchronized d5c6b9cc: a same-head regression now revokes the second reviewer's permission between evaluations and verifies the count changes from 2 to 1. evaluate always queries current opinionated reviews and authorCanPushToRepository; it keeps no cached permission result. The rollout instructions explicitly require a fresh head/review/permission check immediately before each merge and explain that exit zero from the observer alone is not approval.
This does not establish an atomic permission check inside GitHub's merge transaction, and the shared Actions status remains advisory. Native two-review/Request-changes enforcement stays live. #440's cutover remains blocked until an exclusive status source is bound and live anti-spoof plus permission-change verification passes. I am leaving this thread available for your re-review rather than claiming the live cutover is already solved. The focused approval/knowledge-policy group passed 218 tests.
There was a problem hiding this comment.
PR review verdict — DO NOT PASS
Reviewed base ecce581c60dbfd39bdd3ed07ef8c800b49c38231 and head d61345347ad352c25cbd24e795e07f654bbbab21.
Independent first-pass formal review as cursor[bot] against governing Issue #440. Author is zengchuang-hw; this account did not author the change.
Checked
- Trusted writer checks out
mainonly (independent-approvals.yml), signal workflow has empty permissions, andtest_status_writer_does_not_execute_code_from_review_workflowlocks that shape. - Latest-opinionated-vote / current-head / exact first-line
LGTM/ author+commit-author exclusion match #440 acceptance and amy's #440 matrix for the happy path. - Local:
tests/test_independent_approvals.py+tests/test_knowledge_model_policy.py178 passed; ruff clean on the new tool/tests. Hosted ready checks on this head are green.
Blockers (must clear before Approve)
- Rollout docs delete the live CR-clearing path while the native rule still applies.
docs/agent-collaboration.mdand.agents/skills/review-pr/SKILL.mdalready describe the post-cutoverindependent-approvalsworld and remove the “clear Request changes by re-review/dismissal” guidance. The PR body says the native rule remains until cutover. Expected: keep the current CR-clearing instructions marked “until cutover”, or land the doc change together with the ruleset switch. - Status authenticity for the future required gate is unanswered.
publish()treats anygithub-actions[bot]commit status as authoritative. A same-repo PR workflow withpermissions: statuses: writecan also post as that bot. Because this check is intended to replace the review veto, document what prevents spoofing (repo/org setting, Check Run from a dedicated App, or an explicit cutover verification item with a failing spoof attempt). David’s inline note on revalidating eligibility when access changes belongs in the same cutover note. - Bot / App approvals are unspecified.
authorCanPushToRepositoryalone lets a write-access App/botLGTMcount. Exclude[bot]/App authors with a regression test, or state indocs/agent-collaboration.mdthat they count and why (#440 point 4 / amy comment on this PR).
Notes (non-blocking)
- Test gaps amy listed (read_reviews fail-closed, publish dedupe, draft → 0/2) and pinning
setup-python3.11 likeknowledge-model-policy.ymlremain optional hardening. - Cutover order in the PR body (prove status → require check → lower native count → merge-box verify + ruleset JSON before/after in #440) is accepted and must stay sequential.
No merge.
|
#516 has been merged into |
Retain the live native review policy, reject Bot and unresolved reviewer actors, and keep cutover blocked on authentic-source verification. Agent-assisted-by: Codex (author) Signed-off-by: zengchuang-hw <zengchuang3@huawei.com>
|
当前 head @amy-why-3459 @david6666666 请复审当前五文件 advisory observer 切片:已保留 main 的 Request changes 清除指引,review skill 与 main 相同;显式排除 Bot/App/未知 actor,并测试同一 head 权限撤销;fresh permission 仍由集成者在合入前核验。 #440 的 owner 决定 已明确允许先审 advisory 阶段,真正切换仍被“专用 App 唯一 writer + 独立伪造成功负例 + ruleset 绑定该 App”阻断。此 PR 不改变规则集或现有两票要求,也不声称旧的来源伪造问题已被运行证据解决。请原阻断检视方基于这一明确阶段重新判断;作者不自行撤销阻断意见。 |
|
跟进仍打开的 Cursor review 5902400079。已逐项回读当前
请 @jiangkuaixue123 请加入当前 head 的独立检视,重点看这三项修正及 5 文件 advisory-only 增量;218 tests 和 Ready CI 45032659063 证据保留。没有预设通过结论,有意见先处理。通过时正式 Approve 首个非空行单独 |
jiangkuaixue123
left a comment
There was a problem hiding this comment.
LGTM
改了什么
这个 PR 加了一套顾问式的「独立审批观察器」(自己记账、不改仓库合入规则):
- 信号工作流
approval-review-event.yml:有人提交/编辑/驳回审查时只打个信号,permissions为空,不跑仓库代码。 - 可信写状态工作流
independent-approvals.yml:只用main上的代码(checkout ref: main),读实时审查与写权限,往当前提交写independent-approvals状态。 - 核心逻辑
tools/check_independent_approvals.py:只统计「当前 head + 正式 Approve + 正文首行非空行恰好是LGTM+ 真人 User 且有写权限 + 不是作者/提交作者」;Bot/App/未知身份一律不计;共享 head、草稿、异议都会正确落到 failure。 - 文档明确:上线前原生「两票 + Request changes」规则仍有效;共享 GitHub Actions 身份不能当唯一可信来源;切规则集(cutover)仍被 #440 挡住。
- 测试覆盖资格过滤、撤权后重算、异议、共享 head、工作流形状等。
当前 head d5c6b9cc 相对 main 为 5 文件、+376;Ready CI 全绿。作者是 zengchuang-hw,不是我。
问题与风险
未发现影响正确性、安全或「仅 advisory、不切规则」声明行为的实质缺陷。先前 Cursor 阻断项(保留 CR 清除说明、排除 Bot/App、状态身份不可冒充认证)在当前增量里已落实,且文档把切闸条件写死在 #440。
非阻塞提醒:
- 合入后观察器才在
main上真正跑起来(pull_request_target用的是 base 分支工作流),这是预期行为。 - 旧的 cursor[bot]
CHANGES_REQUESTED若仍挡住合入,需有权维护者按现行文档处理/记录理由;这不属于本 diff 的代码缺陷。 - 切到强制门禁前,仍须按文档完成独立可信来源绑定与真实伪造探针;本批准不等于批准 cutover。
结论
批准(APPROVE)。顾问式观察器切片与安全边界清晰,与现有 knowledge-model-policy 的「可信 main 代码」模式一致;不改变现行合入规则。
|
已读 Jiang 对当前 精确限定:工具检查的是 GitHub actor 的 @linyueqian 请独立复核这份 5 文件 advisory-only 切片;@amy-why-3459 @david6666666 先前请求继续有效。请实际读差异和现行/未来切换边界后给结论,有问题先修,批准时当前头正式 Approve 首行单独 |
|
Codex / author-integrator: @david6666666 @linyueqian please review the phase-1 observer-only current head d5c6b9c. 218 tests / Ruff / Ready CI 45032659063 are green; Jiang's 6014847141 is one valid actual-head independent LGTM Approve. Earlier blocker text remains visible; the current source fixes and regression evidence are in the body. Review includes verifying each former blocking finding before any authorized dismissal/re-review. This PR does not perform #440's live-policy cutover or alter App credentials, rulesets or bypass configuration; those still require their separately accepted owner/config/security evidence. A second eligible independent vote and applicable blocker resolution are required before merge. |
|
Codex / integrator,按用户本次“向所有 committer 寻求检视”的要求更新请求。 @amy-why-3459 @Bounty-hunter @david6666666 @Dong1017 @jiangkuaixue123 @linyueqian @hsliuustc0106 请检视当前头 当前主线 Ready 检查已绿;仍需第二份有效独立批准,并由有权限的独立维护者核对原阻塞意见的解决/处置。这里只交付 phase-1 observer,#440 live cutover 保持另行验收。 请先提出并处理具体意见;若独立审查结论为 PASS,请按仓库规则提交第一非空行为独立 账号按链接核对:dengyunyang 对应 @Bounty-hunter,WeiQing Chen 对应 @david6666666。本次只扩大检视请求范围,不更改既有验收/席位条件。 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
Reviewed base b781edc2908969cc45b628adcaf62f57f2a28ad7 and head d5c6b9ccf236653c115189fcc407228a44e0b15a (5 files, +376/−0). This is a Dong-bot (authorized delegate) technical review. It posts as a COMMENT, because this PR touches .github/workflows/approval-review-event.yml and .github/workflows/independent-approvals.yml. A human maintainer's Approve is still required. It does not count as one of the two independent votes.
Verified from the diff (I did not run tests or CI)
- Signal workflow:
approval-review-event.ymlhaspermissions: {}and only echoes. It runs no repo code and has no token scope. - Status writer:
independent-approvals.ymlchecks outref: mainwithpersist-credentials: false. It runstools.check_independent_approvalsfrom trusted main, even though it triggers onpull_request_targetandworkflow_run. No PR-head code is executed.statuses: writeis the only write scope.test_status_writer_does_not_execute_code_from_review_workflowlocks this shape. - Actor filtering:
review_candidatesrequiresAPPROVED,authorCanPushToRepository, a current-head commit oid, and__typename == "User". It rejects logins ending in[bot]and anything unresolved. The first non-empty body line must be exactlyLGTM. The PR author is excluded.evaluatealso excludes commit authors and committers. Parametrized tests cover Bot,[bot], Mannequin and None. - Permission revocation:
evaluatecallsread_reviewson every run and caches nothing. The same-head regression goes 2→1 after revocation. This answers david6666666's inline concern, and the docs require a fresh read before each merge. - Fail-closed paths: a
headRefOidmismatch, a remaininghasNextPage, a commit-count mismatch, and a head with several open PRs all giveerrororfailure. They never give success.reconcilere-checks open-PR ownership before it publishes a success. - Docs: the live Request-changes clearing guidance stays in
docs/agent-collaboration.md. The new section is titled "(not active)" and says the native two-approval rule applies until cutover. The review skill is not in this diff. That resolves Cursor blockers 1 and 3. Blocker 2, status authenticity, is now stated explicitly: a sharedgithub-actions[bot]identity is not authenticating, the dedupe inpublishis not authentication, and cutover needs an exclusive source plus real failing spoof probes.
Non-blocking notes
concurrency: queue: maxinindependent-approvals.yml: I could not confirm it is a supported key. Because the trigger ispull_request_target, this workflow only runs frommainafter merge. The green Ready CI on this head therefore does not exercise it. Please watch the first post-merge run, or confirm the syntax against the GitHub docs.independent-approvalswill showfailureon every PR under 2/2. That is harmless while the check is not required. Do not make it required before cutover.- Dissent: the observer lets another reviewer's
CHANGES_REQUESTEDleave the count unchanged (test_dissent_only_changes_its_own_vote). That is fine while native Request-changes blocking stays in force. The cutover matrix in #440 must say explicitly how dissent blocks. python3is not pinned withsetup-python. This is minor, and amy's earlier point 5 is still open.
Status of other blockers
- The old
cursor[bot]CHANGES_REQUESTED is ond6134534. The current diff resolves its three findings, as above. It needs the applicable formal re-review or a maintainer dismissal with a recorded reason. It does not clear by comment. - Jiang's Approve on this head counts as one vote. A second independent current-head Approve is still needed.
On the question to Dong1017 (exclusive status source)
Per the already-recorded #440 decision (7080564637): the later cutover needs a dedicated, exclusive App-bound writer. Shared github-actions[bot] is not acceptable. The ruleset check must be bound to that App. Real spoof probes from another actor and from another Actions workflow must fail. App owner and schedule are still unassigned. This PR as phase-1 advisory observer is fine to proceed. It does not authorize the cutover.
I will re-read if the author pushes again.
|
test |
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base b781edc and head d5c6b9c.
This is an independent phase-1 advisory-observer review only. It does not accept #440 live cutover, does not name an exclusive status source, and does not change the native two-approval / Request-changes rule.
Verified from the current-head seed:
- Head matches d5c6b9c; base is main b781edc. Author is zengchuang-hw. This account is not the author.
- @jiangkuaixue123 APPROVED this exact head (6014847141), first line LGTM, and records the three earlier code/doc blockers as resolved. That is one eligible current-head vote. This Approve is a second independent vote if the posting account qualifies; it does not replace Jiang's vote and does not count a self-check.
- Claimed scope is 5 files, +376/−0, advisory only: signal workflow with empty permissions, trusted writer checks out main, counter excludes Bot/App/unknown actors and author/commit authors, and publish creator match is dedupe rather than an authentic source. Shared github-actions[bot] identity is documented as not an exclusive trusted source. Review skill is stated unchanged versus main.
- Earlier cursor[bot] CHANGES_REQUESTED on d613453 (CR-clearing docs removed while the native rule still applies; status identity treated as authoritative; Bot/App eligibility) is still the latest formal decision for that login. On this head the body, the author's line citations (docs L108/L119/L138–150, tool L42, regression tests), and Jiang's re-check say those findings are fixed or explicitly deferred to #440. David’s inline permission-cache concern is addressed by the described same-head revoke regression (count 2→1) and a fresh permission read on every evaluate. I am not dismissing that old review from this action; a permissioned maintainer still needs to dismiss or re-review it under the live rule if it still blocks the merge box.
- Ready CI 45032659063 is reported green, with 218 local independent-approval/knowledge-policy passes and clean Ruff. I did not re-run those tests or re-fetch the Actions logs in this session.
Not in this approval: exclusive status App, failing spoof probes, ruleset JSON before/after, or any live cutover. Those stay blocked on #440. Squash only after the live mainline prerequisites, two qualifying current-head approvals, required CI, and disposition of the outstanding Request changes.
Dong-bot (authorized delegate).
adb3d8a
jiangkuaixue123
left a comment
There was a problem hiding this comment.
LGTM
改了什么
相对上一版已批过头 d5c6b9cc,当前头 adb3d8ab(已与 main 8a8e8579 同步)仍是 5 个文件、顾问式独立审批观察器(自己记账、不改仓库合入规则),主要增量是 David 指出的「共享 head 拆开后」修复:
- 信号工作流
approval-review-event.yml:审查提交/编辑/驳回时只发信号,permissions为空,不跑仓库代码。 - 可信写状态工作流
independent-approvals.yml:只 checkoutmain(且关掉凭据持久化),用可信代码读实时审查与写权限,写independent-approvals状态;queue: max与现行 Actions 语法一致。 - 核心逻辑
tools/check_independent_approvals.py:只计「当前 head + 正式 Approve + 正文首行恰好LGTM+ 真人 User 且可推送 + 非作者/提交作者」;Bot/App/未知身份不计。本次targets()在synchronize时同时纳入 当前与 former SHA;former 缺失/非法则回退到全量 open PR 重算,避免拆开后留在旧 SHA 上的同伴一直卡在共享失败。 - 文档明确:切规则集(cutover)前原生「两票 + Request changes」仍有效;共享 Actions 身份不能当认证来源;真正切闸仍归 #440。
- 测试新增三条回归:先写下共享失败,再推进其中一个 PR,要求留下的唯一同伴恢复 success。
作者是 zengchuang-hw,不是我。旧头上的批准/CI 不转移到本头。
问题与风险
未发现影响正确性、安全或「仅 advisory、不切规则」声明行为的实质缺陷。共享 head 拆开后的重算路径与回归对得上;安全边界(可信 main、空权限信号流、状态身份只做去重)与先前审查结论一致。
非阻塞提醒:
- 本头 Ready CI 在审查时仍有
full-check/ 部分 host 检查在跑;合入前请确认新头必需检查已绿。 - 旧 cursor[bot]
CHANGES_REQUESTED若仍挡合入,需有权维护者按现行文档处理并记录理由;不属于本 diff 代码缺陷。 - 本批准不等于批准 #440 的 live cutover。
结论
批准(APPROVE)。顾问式观察器切片清晰,共享 head 同步修复合理,不改变现行合入规则。
jiangkuaixue123
left a comment
There was a problem hiding this comment.
LGTM
审查的是当前头 adb3d8a(相对 main 8a8e857)。这是一个咨询性观察器(advisory observer:只报告状态、不替代现有合入门槛)实现:在仍生效的原生两票批准,以及「Request changes」(请求修改,会挡住合入)规则之外,读取当前头上的评审、贡献者身份和即时写权限,然后写一个非必须的 independent-approvals 状态。本 PR 不切换规则集(ruleset,仓库的合入规则)。相对此前已撤销的 d5c6b9c 批准,本头的实质增量是:在 synchronize(分支又推送新提交)时,同时核对当前 SHA 和变更前 SHA 上的其他 PR;若 before 缺失或不合法,则从实时开放 PR 集合重算,并有回归测试覆盖「共享头拆开后,留下的那一个 PR 应恢复成功」。
未发现会改变上述声明行为、共享头修复正确性,或状态写入工作流安全性的明显问题。信号工作流权限为空;状态写入端只检出受信任的 main,并关闭凭据持久化,不执行 PR 头上的代码。文档保留了现行 Request changes 的复审/有权维护者撤销说明,并把来源认证和正式切换明确留在 #440。github-actions[bot] 的匹配只用于去重,不当作成源认证。
结论:就本头的代码与声明范围可以批准。旧头 d5c6b9c 上的批准与 CI 不继承。仓库托管的 full-check 在本头仍在进行,这是合入门槛,不是这次代码审查的阻断项;作者声称的 221 项本地测试,我未在本头已完成的托管检查里独立复核。
|
Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings. |
|
Cursor 已在 7091954757 明确回复:本仓库 Bugbot disabled,因此目前不能通过它自动复审清除 5902400079。@Dong1017 @david6666666 请作为本切片的有权独立维护者,核对当前 adb3d8a 的三项既有修复与 David 的 shared-head split 新修复后,按现行规则记录理由并处理旧 Cursor CHANGES_REQUESTED;作者不会自行 dismiss,也不为此启用插件或修改保护规则。完整相关组 221 passed,Jiang 已对本头正式 LGTM Approve(6016681941),旧头批准不继承;仍需另一个独立账号本头正式批准及新头 CI 全绿后才 squash。 |
Dong1017
left a comment
There was a problem hiding this comment.
LGTM
PR review verdict — PASS
Reviewed base 8a8e857 and head adb3d8a.
Dong-bot (authorized delegate). Author and implementer are zengchuang-hw. This account has no author, implementer, or accountable-parent role on this observer slice (7091506000). This is a current-head formal Approve. It covers the phase-1 advisory observer only. Live cutover, the exclusive status source, and any protection-rule edit stay on #440.
Current-head votes already on adb3d8a: @jiangkuaixue123 APPROVED twice, 6016658509 and 6016681941, one account, one vote. 6016681941 is the LGTM cited in the thread. Both re-read this head. Old-head approvals 6014847141 and 6016488657 are dismissed and do not carry. This Approve is the second current-head independent vote.
Resolution of cursor[bot] CHANGES_REQUESTED 5902400079 (stale head d613453): dismiss it on this record. Bugbot is disabled for the repo (7091954757), so that login will not update the review. The author is not dismissing it. Until cutover, an authorized independent maintainer may clear Request changes with a written reason. The three original findings are fixed on adb3d8a, and David's later shared-head split is fixed on this same head.
- Request-changes clearing path. The old blocker was that rollout docs dropped re-review / independent-maintainer dismissal while the native rule still applied. This head keeps that path and states that native two-approval and Request changes stay in force until cutover. The review skill matches main. 6016681941 confirms this on adb3d8a.
- Status authenticity. The old blocker was treating a github-actions[bot] status as source authentication, which a same-repo workflow could spoof. This head uses that creator check only as deduplication. A dedicated writer, real failing spoof attempts, and a ruleset binding remain #440 cutover work. This PR leaves the ruleset unchanged. The signal workflow has empty permissions. The status writer checks out trusted main only, with credential persistence disabled, and does not run PR-head code. 6016658509 and 6016681941 confirm this on adb3d8a.
- Bot, App, and unknown actors. They are excluded: User only,
[bot]logins dropped, unresolved actor types dropped. Live write permission is re-read on each evaluation, with the same-head revocation regression (two votes down to one) in the stated tests. 6016658509 confirms this on adb3d8a. - David's shared-head split (inline on tools/check_independent_approvals.py; 6016587870 was on the previous head). On synchronize, peer reconciliation includes the current SHA and the former SHA. A missing or malformed former SHA falls back to the live open set. Three regressions write a shared-head failure, advance one PR, and require the remaining unique peer to recover success. The author reports those three stayed failed before the fix. 6016658509 and 6016681941 both re-read that path and found no correctness or safety-boundary defect.
Not verified here: I did not re-run the reported 221 independent-approval / knowledge-policy tests, Ruff, or the whitespace check. Jiang also did not re-check that 221 count in completed hosted runs. New-head Ready CI / full-check was still running at 6016681941, and this record has no later all-green run. Required checks on adb3d8a must be green before squash. That remains a merge gate.
#576 stays off this PR (7091413632). Squash waits on this second current-head Approve landing and on green required CI for adb3d8a.
|
@Dong1017 已收到你在正式当前头批准 6016776887 中逐项核对并明确“dismiss it on this record”的独立维护者决定。当前头 Ready CI 45113049129 已全部成功,Jiang 6016681941 + Dong 6016776887 两票具备。还需完成 GitHub 原生动作:5902400079 当前状态仍是 CHANGES_REQUESTED,书面批准/处理决定不会自动改变该 review。请用你的独立维护者账号执行该旧 review 的 Dismiss review,并引用你本次的逐项理由;如该账号无原生权限,请 @david6666666 作为独立 admin 依据此已记录决定执行。作者账号不会代为 dismiss。原生状态清除后将再次核对本头/权限/CI并 squash。 |
|
本会话不能执行 5902400079 的原生 Dismiss review。 请 @david6666666 以独立 admin 依据已记录决定执行。作者不要代为 dismiss。 本会话只能提交新的正式 review 或线程评论。当前头 @david6666666 请对 review 5902400079 执行 Dismiss review,message 用下面这段。第 1 项引自 6016776887;seed 里该正文在第 1 项后被截断,2–4 按当前头正文与线程里同一组已核对修复列出(该 Approve 写明三项原阻断与 David 的 shared-head split 均已在 计票(来自当前头正式检视,本回合未新交 Approve):
CI:触发评论称 Ready CI 45113049129 已全部成功。本回合未重跑测试,也未重新打开该 run。 原生状态清除后,再核对本头、权限与 CI,然后才 squash。这次 dismiss 不接受 #440 live cutover,也不改保护规则。Dong-bot(authorized delegate)。 |
|
@hsliuustc0106 @david6666666 请协助这个已具备两份当前头独立批准且 CI 全绿的 PR 完成原生 review 清理。独立维护者 Dong 已在 6016776887 逐项确认原阻断修复并作出 dismiss 决定,但在 7092110054 明确其会话没有 Dismiss API;Cursor 也已明确仓库 Bugbot disabled。当前唯一的原生阻塞仍是旧 review 5902400079(GraphQL ID PRR_kwDOVAPJSc8AAAABX896Tw)。请有权限的独立 admin 核对该已记录决定后执行 Dismiss review,理由可引用 7092110054 的完整文本;这不修改保护规则或接受 live cutover。作者不能代为执行。完成后我会再次核对当前 adb3d8a / 两份有效批准 / CI 再 squash。 |
Dong1017
left a comment
There was a problem hiding this comment.
PR review verdict — PASS
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).
Reviewed base 8a8e85795a851dc884278aea4e0db67d4c6e77f5 and head adb3d8ab43ee6b8e581cef318cf9c35b35230dd1. The diff is complete: 5 files, +404/−0.
This is a Dong-bot (authorized delegate) diff-based re-review. The PR touches .github/workflows/approval-review-event.yml and .github/workflows/independent-approvals.yml, so it posts as a COMMENT. A human maintainer's Approve is still required on this review path. This comment is not a formal Approve and does not clear any Request changes.
Under Dong1017's by-hand decision 7091413632, that is not an extra merge condition for #441. The merge conditions remain two eligible current-head approvals, resolution of the old Request changes, and required CI.
Cursor Request changes 5902400079 (stale head d6134534)
The three original findings are fixed in the current diff:
- Request-changes clearing path. The
docs/agent-collaboration.mdhunk adds a section headed "(not active)". It states that the native two-approval and Request-changes rule stays in force until cutover, and it removes no existing text. The context lines still carry the dismissal instruction ("Record the reason and supporting evidence on the PR. The two valid approvals are still required after dismissal."). The PR body says the review skill is unchanged from main, and the diff does not touch it. - Status authenticity. The
publish()comments and the docs section say that matchinggithub-actions[bot]is deduplication only. Cutover is gated on an exclusive trusted source and two live negative probes, which stay in #440. No ruleset, credential or bypass is changed. - Bot/App/unknown actors.
review_candidatesrequires__typename == "User"and rejects logins ending in[bot]. The parametrized test covers Bot,[bot], Mannequin and None.evaluatere-reads reviews andauthorCanPushToRepositoryon every call.test_rechecking_the_same_head_does_not_cache_a_revoked_permissionchecks the count going from 2 to 1.
David's shared-head split (new on this head)
targets()selects peers on both the current SHA and thebeforeSHA onsynchronize.- If
beforeis missing or not a valid SHA, it returns all open PRs, so reconciliation comes from live data. test_synchronize_reconciles_a_peer_after_a_shared_head_splitsis parametrized overbeforeset to the shared head,Noneand"not-a-sha". It records the shared failure first, then requires{HEAD: success, OLD: success}after one PR advances. The logic matches the tests.
Workflow shape
- The signal workflow has
permissions: {}and only echoes. - The writer checks out
ref: mainwithpersist-credentials: false. It runs main'stools.check_independent_approvals, so it executes no PR-head code even underpull_request_target. Its only write scope isstatuses: write. test_status_writer_does_not_execute_code_from_review_workflowlocks this shape.
Blockers: none in the diff.
Non-blocking, not verified
- The workflow uses
concurrency: queue: max. I did not verify that syntax against GitHub's docs. The PR body says the first post-merge run needs observation, and I agree. - I did not run tests or CI. The 221 passed result and Ready CI 45113049129 come from the PR body and thread.
- I did not confirm that the required CI checks are green on this head. Re-check that at merge time.
Review-state mechanics
- 5902400079 is still CHANGES_REQUESTED. Bugbot is disabled (7091954757), so cursor[bot] will not re-review. A comment or an Approve from another account cannot clear it.
- The findings are resolved in the diff. An independent admin can dismiss 5902400079 on the record in Dong1017's Approve 6016776887, and the full message text is in 7092110054. @david6666666 is the account to do it.
- Dong-bot cannot dismiss reviews. The author must not dismiss it.
- Current-head approvals: Jiang 6016658509 and 6016681941 (one account, one vote), plus Dong 6016776887. Under 7091506000 and 7091530223 the Dong Approve counts as the second independent vote for this slice only. Old-head approvals do not carry over.
- This PR does not accept the #440 live cutover, name an exclusive status source, or change any protection rule.
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5). Dong-bot (authorized delegate) can't dismiss cursor[bot] review 5902400079. It has no dismissal action, and a new review or comment from this account would not clear another account's CHANGES_REQUESTED. Dong1017's by-hand 7092110054 already said the same, and nothing there changes. @david6666666 needs to run Dismiss review as an independent admin.
DetailsBasis for dismissal, checked against the diff:
The written reason is in 6016776887, and the dismissal message text is in 7092110054. |
|
@david6666666 @hsliuustc0106 再跟进一个具体的原生操作:当前 adb3d8a 的两份有效独立 LGTM(Jiang 6016681941、Dong 6016776887)及 Ready 45113049129 均已具备;旧 cursor[bot] Request changes 5902400079 仍是原生阻塞。Bugbot 明确关闭,不能等它复审。Dong 的独立审查/逐项修正依据已在 6016776887、6017267646 记录,并在 7092110054 给出 dismissal 理由。请有 dismiss 权限且独立的管理员自行核实后执行 Dismiss review(node |
Dismissed by Claude Code at Dong1017's request. This CHANGES_REQUESTED is from 2026-11-14 on d613453, an old head. cursor[bot] is Dong1017's owner-side steward, so this is the owner withdrawing its steward's stale request, recorded here as #440 requires. The current head adb3d8a has approvals from Dong1017 and jiangkuaixue123, and all 20 checks pass.
|
Squash 已完成:actual main aacf550,reviewed head adb3d8a。集成前重新核对 Jiang 6016681941 与 Dong 6016776887(两独立账号、当前头、正式 APPROVED、第一非空行 LGTM),实时 write+ 权限、Ready 45113049129 全部非 advisory jobs 和 knowledge-model-policy 均通过。原 Cursor CR 5902400079 由独立 Dong 账号于 06:55:50 UTC 原生 dismissed,依据其已记录逐项修正审查与本人请求,作者没有执行 dismissal;原异议正文保留。现在核验 actual main 并观察第一次真实 observer 执行。此交付只有 phase-1 advisory 状态观察,不把共享 Actions 写入者当可信认证,不更改保护规则;#440 live cutover 的独占来源绑定、反冒充/撤权/异议实测和规则切换仍未完成。 |
|
@zengchuang-hw heads-up from the first live run of |
A cursor[bot] review is advisory under these rules, but GitHub can still report the PR as blocked by its Request changes (as on #441). Instead of saying the ruleset never blocks on it, recheck GitHub's merge state on the current head before merging; if the advisory review still blocks, clear it the way a blocking Request changes is cleared and record who dismissed it and the disposition of each point. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Resolve the docs/agent-collaboration.md conflict by keeping both the merge queue paragraph from this branch and the independent-approval observer section from main (#441); #600's path corrections merge cleanly. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
… gates (#571) * docs: let agents carry work end to end, with human stop and high-risk gates The guide assumed humans make delegation, scope, rule and waiver decisions. Agents now do most of the work, so let them make those decisions on the record, and keep humans to setting direction through Issues, approving high-risk changes and stopping work. Adds the agent safeguards this relies on: cross-agent approval, a merge queue as the last gate, revert-first on a red main, the agent:stop label, and the earlier claim, identity and comment rules. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: bound agent decisions, define stop scope and align approval format Keep scope and exception decisions within the recorded delegation and the Issue's direction, require the Issue owner's approval before expanding scope, and list the controls no agent may waive. A stop on an Issue now also covers its linked PRs, queued merges and delegated work; agents recheck it before each side effect and do not act when the state is unknown. An Approve keeps LGTM alone on its first non-empty line and puts the identity line next; the review skill now says the same. Agents may submit formal reviews without a separate human delegation. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: keep the non-waivable list to the key gates and add decider rules Leave scope decisions within an Issue's direction to the agent, recorded with a reason, and send only a change of direction back to the owner, so agents wait on people less. The list of controls no agent may waive keeps four items: independent review with two approvals, a human Approve for high-risk changes, agent:stop and permission/ruleset controls. Add one deciding agent per Issue, Comment-only reviews by agents on high-risk PRs, and one formal reviewer agent per account. A claim without a stated time allows 24 hours. Separate agent accounts stay a proposal, starting with a Dong-bot pilot. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: tie Issue governance to assignee and status labels Name the assignee as the accountable owner and the formal agent working for that account as the deciding agent; with several agents under one account only its formal agent decides. Unassigned Issues are not started. In the labels table, status:proposed means discussion only, and work starts at status:accepted, when the direction is settled. Discussion within the direction continues and the deciding agent settles it with a reason; a change of direction goes back to the Issue owner. agent:stop applies at any status. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: rename the stop label to bot:stop, adopt bot:reviewed and make the merge queue conditional Rename agent:stop to bot:stop so the stop switch fits the group:value rule. Manage bot:reviewed in labels.json as an informational agent review mark and drop the external-labels exception, its check and its tests: the app that owned bot-reviewed has not applied it since 2026-11-04. Make the merge queue paragraph conditional on the queue being enabled; until then the current ruleset and merge controls apply. The repository rename of bot-reviewed and the creation of bot:stop happen after this PR merges, so the nightly drift check does not report them early. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: keep the external-labels exception until the label migration Restore .github/external-labels.json, its check, its tests and its paragraph in the collaboration guide, partly reverting the previous commit, and drop bot:reviewed from labels.json and the labels table. Moving bot-reviewed to a managed bot:reviewed label is left to the label-reduction PR, so the exception stays until that migration lands. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: have maintainers merge high-risk PRs and settle when bot:stop applies High-risk PRs still need two approvals, one from a human maintainer, but agents no longer approve, merge or queue them: a human maintainer merges each one, because on shared accounts an approval cannot prove a human gave it. Counting approvals returns once agents have their own accounts. Say when bot:stop becomes usable and that an Issue owner's stop comment counts until then. Drop the promise that a stop also halts queued merges: there is no queue yet, and whoever enables one names who removes stopped entries and verifies it. During rollout the accountable owner is the one the Issue records, falling back to the assignee. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: keep comment stop requests in effect until lifted or moved to bot:stop A human's stop comment on an Issue or PR no longer expires once the bot:stop label exists: it holds until a human lifts it there or bot:stop is added to the same object, and every pre-push, review and merge recheck looks for both. A final stop check before queueing becomes part of enabling a merge queue. AGENTS.md now names the recorded owner, with the assignee as fallback, instead of an assigned Issue. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: count maintainer-account approvals on high-risk PRs and track them after the fact Apply the policy change recorded on #570: high-risk PRs still need two independent approvals with at least one from a maintainer account, whose agent may give it; the approval and the merge carry identity lines for later audit, and misuse is reverted, recorded and tightened after the fact. Withdraw the human-maintainer Approve and personal-merge rules and the separate-account pilot proposal. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: list the audit fields for high-risk merges and record recovery for irreversible effects Per the #570 policy change, the high-risk merge comment lists the reviewed head, the approving accounts with review links, and the merge SHA and account; maintainer authority is the repository permission at merge time. Changes whose external effects a revert cannot undo state the recovery owner and containment steps on the PR beforehand. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: make the audit and recovery lines agent-written fixed fields and count outside authors' votes The merging agent writes a fixed merge-audit line at merge time, and the author or its agent writes a fixed recovery line in the PR body when a revert cannot undo an external effect; reviewer agents request it when missing, with no new approval gate. A maintainer account is one with write access when it acts; for an outside author both approvals come from maintainer accounts. No step waits on a human, so a bot pipeline can check these rules later. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: record the maintainer approver in the merge-audit line The merge-audit line now names the approving account that held repository write permission at merge time, so an audit can tell which approval carried maintainer authority. Agent-assisted-by: DSH / deepseek-v4.1-flash (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: check stop comments in review-pr and say who lifts a stop The review skill now checks unlifted human stop comments as well as the label and does not submit when it cannot tell, matching the guide, so this PR is consistent if it merges before the skills PR. The guide says only the human who posted a stop or a maintainer account may lift or migrate it, recorded by a comment on the same Issue or PR, and that a stop stays in effect when the evidence is unclear. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: require an Admin-role approval on high-risk PRs At least one of the two high-risk approvals now comes from an account whose repository role is Admin at merge time (its agent may give it); Maintain and Write accounts still count toward the two but not as that one. Write access no longer makes an account a maintainer. The merge-audit line records admin=@<login> as verified at merge time. Decision: #570 (issuecomment-7078247553). Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: take the high-risk approval from a named approver list At least one of the two high-risk approvals now comes from an account on .github/high-risk-approvers.json (david6666666, zengchuang-hw, amy-why-3459, Dong1017, hsliuustc0106) that still has write access at merge time; its agent may give it. Other accounts count toward the two but not as that one. Changing the list is itself a high-risk change. The merge-audit line records approver=@<login>. This replaces the Admin-role rule. Decision: #570 (issuecomment-7078872219). Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: pin the effective approver list and align who lifts a stop The PR that creates .github/high-risk-approvers.json is approved once against the five accounts recorded in #570 under the existing repository controls. After that only the copy in the protected main commit the merging agent verifies right before the merge counts, never the PR head or a stacked branch, so a list change is judged by the list in effect before it. If the list or the approver's write access cannot be read, the agent does not merge. The merge-audit line gains list=<sha>. review-pr points to the same rule. The stop rule, the labels table and the bot:stop description now say the same thing: a human adds the label (or a maintainer account's agent for a human, linking that request), and the human who stopped or a maintainer account, including its agent, lifts it. Review: #571 (12:16Z zengchuang-hw, 12:17Z Dong1017). Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: keep lifting a stop human-only and say what list= records at bootstrap Only a human lifts a stop: the human who stopped the work or a maintainer acting in person, never an agent, including a maintainer account's agent, as decided on #570 and left unchanged by the later amendment. Adding the label for a human or migrating a recorded human stop comment keeps the stop in force and is not lifting it, so a maintainer account's agent may still do either. The labels table row and the bot:stop description say the same. For the one-time bootstrap merge, which has no list on main, merge-audit records list=bootstrap-570 and links the #570 record. Review: #571 (12:56Z zengchuang-hw). Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: let a cursor[bot] approval count as one vote on non-high-risk PRs A bot reviewer went offline for budget limits, which left PRs waiting for a second approval from an account with write access. On a PR that is not high-risk, a cursor[bot] Approve on the current head now counts as one of the two approvals; the other still comes from an account with write access. A cursor[bot] Request changes is still a blocker. High-risk PRs keep both approvals from eligible accounts with write access and the listed approver. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: add Bounty-hunter to the high-risk approver list Record the addition requested for the high-risk approver list. Write access for the account is being arranged separately with a repository admin; the list only accepts an approver that still has write access at merge time. Agent-assisted-by: bothouse / jingyu (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: give each issue one parent and its own completion condition Linked task issues listed each other as remaining work and stayed open until a shared acceptance, so none could close on its own. Add a working rule: at most one parent attached as a GitHub sub-issue, one-way acyclic dependencies, only the parent lists children and holds joint acceptance, and each child names the PR(s) or check that completes it. The scoped task template now asks for the parent and that completion condition. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: keep cursor[bot] reviews advisory and out of the two approvals This reverts the cursor[bot] exception from 71777a0. The main ruleset counts only approvals from reviewers with write access, so a cursor[bot] Approve cannot be one of the two. Its reviews stay advisory; the ruleset does not block on its Request changes, but under these rules it is still answered before merge. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: add linyueqian to the high-risk approver list Record the addition requested for the high-risk approver list. The account has repository write access today; the list still only accepts an approver that has write access at merge time. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * Revert "docs: give each issue one parent and its own completion condition" This reverts commit da07c31. The issue parent, dependency and completion rule was not settled in #570 and does not belong in this PR. It moves to its own PR from main, where the scoped task template also says a standalone task may leave the parent blank. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: fall back to the assignee as owner only when exactly one is set GitHub Issues can have several assignees, and the rollout fallback did not say which of them owns scope changes and exceptions. Use the assignee as accountable owner only when exactly one is set; with several (or none) and no recorded owner, the Issue has no accountable owner until one is recorded explicitly. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: recheck GitHub's merge state for an advisory Request changes A cursor[bot] review is advisory under these rules, but GitHub can still report the PR as blocked by its Request changes (as on #441). Instead of saying the ruleset never blocks on it, recheck GitHub's merge state on the current head before merging; if the advisory review still blocks, clear it the way a blocking Request changes is cleared and record who dismissed it and the disposition of each point. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: check a stop on every ancestor Issue before acting A stop on a parent Issue covers its sub-issues and their PRs, so the action-time check now walks each linked Issue's sub-issue parent chain. If any Issue in that chain cannot be read, the agent treats the work as stopped and records the unreadable Issue on the PR. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: limit the stop check to the governing chain and its real ancestors The stop check now covers the PR, the Issues that govern or delegated the work (the PR body's Refs/Closes scope source, or where the work was delegated) and their sub-issue ancestors. An Issue linked only as background is outside the chain, so it neither stops the work nor has to be readable, while an unreadable Issue inside the chain still stops it. Two examples state the expected outcome. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: count formal Approve reviews and use the guide's stop check in review-pr Align with #440 and the open #607: the two approvals are formal GitHub Approve reviews from distinct eligible accounts on the current head; the review body's wording, including LGTM, no longer counts. The identity line now starts every comment and review. The independent-approvals observer section says it is advisory, not an approval count, and is removed by #607. review-pr now applies the guide's full stop check instead of naming only the PR and its governing Issue. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: fix the comment order — identity line first, then the conclusion Working rule 8 asked comments to start with a one-line conclusion while AGENTS.md and the review-pr example start every comment and review with the acting-agent identity line. State one order: the identity line is the first line, the one-line conclusion the first substantive line after it. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: add collaboration skills and slim the agent entry page (#572) * docs: add collaboration skills and slim the agent entry page Agents each read the collaboration guide and applied it differently, because review-pr was the only collaboration skill. Add one skill per step of a change (claim-work, open-pr, merge-pr, red-main), update review-pr for identity lines, short comments and agent reviews, and turn the AGENTS.md collaboration part into one-line pointers. The optimization request workflow moves to the operation guide unchanged, and the overlapping issue, research-lock and evidence sections merge. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: check assignee, status and stacked base in the claim and merge skills claim-work now checks that the Issue has an assignee and status:accepted, and that the claimer is the deciding agent or works under its delegation, before claiming. merge-pr adds a check that the PR's base is its intended target, switched back to main once a lower stacked PR merges, and that the PRs it depends on have merged. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: use bot:stop and complete the merge-pr preconditions Rename agent:stop to bot:stop in the skills and the entry page. merge-pr now checks that the PR is open and not a draft, that the integrator is authorized, the base is the intended target and dependencies have merged, and rereads the head and base right before merging or queueing. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: leave high-risk merges to maintainers and recheck base and approvals in merge-pr The merge skill now reports a high-risk PR as needing a human maintainer to merge and never as merge-ready, matching the collaboration guide. Right before merging it rechecks the base commit as well as the base branch, and reads the Issue's acceptance and authorization and the approvals on the current head again. The direct squash path keeps the current ruleset and merge controls; queueing waits for a merge queue. Claim and merge checks use the accountable owner recorded on the Issue, falling back to the assignee. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: honor unlifted stop comments in the claim, review and merge skills The skills now treat a human's stop comment on the PR or its governing Issue like bot:stop until a human lifts it or adds the label there, and merge-pr rechecks both right before merging, matching the guide. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: let maintainer accounts approve and agents merge high-risk PRs in the skills Follow the #570 policy change: review-pr lets a maintainer account, including its agent, give the maintainer approval on a high-risk PR, and merge-pr check 9 now only requires at least one approval from a maintainer account before the normal flow. AGENTS.md drops the human-merge wording. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: list the audit fields in the merge-pr record for high-risk PRs The merge record comment on a high-risk PR lists the reviewed head, the approving accounts with review links, and the merge SHA and merging account, matching the guide. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: have the skills write the fixed merge-audit and recovery lines and count outside authors' votes merge-pr writes the merge-audit line itself right after a high-risk merge and, for an author without write access, counts only maintainer-account approvals; open-pr adds the recovery line when a revert cannot undo an external effect, and review-pr requests it when missing. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: record the maintainer approver in the merge-audit line The merge-pr record now has the maintainer field from the guide, naming the approving account that held repository write permission at merge time. Agent-assisted-by: DSH / deepseek-v4.1-flash (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: bind the merge to the checked head and verify recovery in merge-pr merge-pr now squash-merges with the checked head as the expected head (--match-head-commit, or sha on the REST endpoint) and starts over if GitHub refuses it, and its final reread also rechecks open Request changes reviews. An account's vote counts once whether its human votes directly or its formal reviewer agent does. A merge that itself causes an external effect checks the recovery line first, without an extra approval. claim-work and merge-pr point to the guide's stop rule and do not act when they cannot tell whether a stop is present. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: let a maintainer account's agent integrate in merge-pr The integration path no longer says only a human maintainer: you may integrate when you act for a maintainer account. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: require and verify an Admin-role approval in merge-pr On a high-risk PR, merge-pr now needs one approval from an account whose repository role is Admin, checked right before merging with the collaborator permission API (role_name must be admin); Maintain and Write approvals count toward the two but not as that one. The merge-audit line records admin=@<login>. review-pr and AGENTS.md say the same. Decision: #570 (issuecomment-7078247553). Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: check the high-risk approver list in merge-pr Check 9 now reads .github/high-risk-approvers.json from main right before merging, confirms an approving account is on it, and confirms through the collaborator permission endpoint that the account still has write access. The merge-audit line records approver=@<login>. review-pr and the AGENTS.md merge entry follow the list instead of the Admin role. Decision: #570 (issuecomment-7078872219). Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: read the approver list at the checked main commit in merge-pr Check 9 now reads .github/high-risk-approvers.json at the noted baseRefOid on protected main instead of a second floating ref=main read, never from the PR head or a stacked branch, so a list change is judged by the list before it. If the list or the permission cannot be read, do not merge. The bootstrap stays in the guide and is linked, not repeated. The final reread checks the list at the same commit and the PR body's recovery: line, since the body can change without a new head. merge-audit gains list=<baseRefOid>. review-pr points to the same rule. Review: #572 (12:18Z Dong1017, 12:19Z zengchuang-hw). Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: name the bootstrap list= value in merge-pr The merge-audit list= field is the baseRefOid the list was read from, or list=bootstrap-570 only for the one-time bootstrap merge described in the guide. Review: #571 (12:56Z zengchuang-hw). Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: accept a cursor[bot] approval as one vote in merge-pr on non-high-risk PRs Check 5 now accepts a cursor[bot] Approve on the current head as one of the two approvals when check 9 finds the PR is not high-risk; the other still comes from an account with write access, and a cursor[bot] Request changes is still handled as a blocker. On a high-risk PR, or when that cannot be told, it does not count. The AGENTS.md review and merge lines say the same. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: drop the cursor[bot] vote from merge-pr This reverts 8d25b9d. The main ruleset counts only approvals from accounts with write access, so merge-pr no longer takes a cursor[bot] Approve as one of the two. Its Request changes is still handled under check 7. Agent-assisted-by: Claude Code / claude-opus-5-5 (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: split binding and advisory Request changes in merge-pr The guide makes cursor[bot] reviews advisory, but check 7 and the final reread still required every Request changes to be turned into Approve or dismissed, so a reasoned answer to an advisory review could never clear it. Require a formal clear only for reviews from accounts with write access; an advisory request needs a substantive answer and a recorded disposition, and an unresolved code or safety blocker still stops the merge whoever raised it. Also use the assignee as owner only when exactly one is set, as the guide now says. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: dismiss an advisory review that GitHub still blocks on in merge-pr Follow the guide: an advisory review such as cursor[bot]'s still needs a substantive answer and a recorded disposition, and if GitHub's merge state still shows the PR blocked by it on the current head, someone the guide allows dismisses it with the reason recorded before merging. The final recheck now includes GitHub's merge state. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: check a stop on every ancestor Issue in the collaboration skills merge-pr, review-pr and claim-work now check the PR, its linked Issues and each Issue's sub-issue parent chain for a stop, and treat an unreadable chain as stopped, matching the stop rule in the collaboration guide. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: use the guide's stop check in the collaboration skills claim-work, review-pr and merge-pr now point to the guide's single stop check and its stop chain (governing or delegating Issues and their real ancestors) instead of each naming its own scope, so a background link no longer blocks a review or merge while a stopped parent still does. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: count formal Approve reviews in merge-pr, not their body text Align the merge and review entries with #440 and the open #607: two formal Approve reviews from distinct eligible accounts on the current head; the body's wording, including LGTM, is not a counting condition. The other merge checks are unchanged. Agent-assisted-by: bothouse / claude (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> --------- Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> * docs: guard collaboration merges against state changes Keep native auto-merge off for managed PRs and protect the high-risk approver list through integration. Agent-assisted-by: Codex (implementer) Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com> --------- Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Refs #440
Adds an advisory independent-approval observer while native two-review / Request-changes enforcement remains active. It reads current-head reviews, contributor identities and current write permissions from GitHub, then reports a non-required status. This PR performs no ruleset cutover.
Current head:
adb3d8ab43ee6b8e581cef318cf9c35b35230dd1, synchronized with actual main8a8e8579. The increment remains five files, +404/−0.Review corrections
Validation and reviews
Authorship: zengchuang-hw / Codex. Dong1017's lack of parent responsibility or implementation contribution for this bounded observer slice is recorded in 7091506000; other slices retain their own role exclusions. Authorized independent write+ reviewers may review this slice; no additional human-only gate applies here.
Separate live cutover
#440 still needs a dedicated exclusive App writer and source binding, credential isolation, real failing spoof attempts from another actor and another Actions workflow, permission-revocation and dissent checks, merge-box verification, and before/after ruleset evidence with other protections unchanged. Missing evidence keeps native enforcement active. Unit tests, this observer and code approvals do not accept that switch.