Skip to content

docs: let agents carry work end to end, with human stop and high-risk gates - #571

Merged
Dong1017 merged 34 commits into
mainfrom
docs/bot-collaboration-rules
Nov 24, 2026
Merged

Dong1017 merged 34 commits into
mainfrom
docs/bot-collaboration-rules

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #570

Summary

Updates the collaboration guide for the direction accepted in #570. Humans set direction through Issues and can stop work. Agents carry accepted work through delegation, review and integration. Accepted direction

  • Identity and authority. Within the accepted scope, agents may delegate, set criteria, apply rules, grant bounded exceptions, review and merge. The accountable owner is recorded on the Issue or falls back to the only assignee during rollout. The stop check follows the governing and delegating Issues and their ancestor chain. Only a human can lift a stop.
  • Review and merge. Two independent formal approvals are required. Each eligible account counts once, whether its human or its formal reviewer agent submits the review. On high-risk changes, one approval must come from a listed account that still has write access. This PR introduces the list and uses the original five accounts for its own bootstrap approval. High-risk merges record the acting identity and merge-audit: line. External effects that a revert cannot undo require a recovery: line. If main goes red after a merge, revert first and fix forward. Approver-list decision
  • Labels. Renames agent:stop to bot:stop in the label manifest and guide. Create bot:stop with the Dong1017 account after merge. The external bot-reviewed label remains covered by the existing exception until the label-reduction work.
  • Skills and working rules. Includes the skills from docs: add collaboration skills and slim the agent entry page #572. The workflow uses claim-work, open-pr, review-pr, merge-pr and red-main. AGENTS.md points to the relevant steps. Claim and comment conventions are working rules 8 and 9. The Issue parent and dependency rule is rule 7.

Review fixes

  • GitHub auto-merge stays off for governed PRs. The authorized integrator or a maintainer cancels any outstanding request on every affected PR and verifies cancellation, including when a stop comes from an ancestor Issue. Auto-merge review
  • After the one-time bootstrap, high-risk integration checks the list against the live protected main SHA. Integration requires a merge path that rejects a changed base or verified serialization with every list update. If neither protection is available, the merge is held. High-risk merge review

Checks

  • Ruff passed on src, tests and tools.
  • All 43 label and template tests passed. The PR reference check passed on this description.
  • The patched head integrates cleanly with the checked main tip (353ac768) in a local merge check.
  • The full local Windows run was stopped after failures. Four failing cases reproduced on the pre-fix head. They involve fixture line endings, symlink privileges and lack of FIFO support. GitHub full-suite checks

Limits

The merge-queue trigger and repository settings follow the separate work in #570. The collaboration guide and merge skill define the checks for integrators.

… 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>

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

Reviewer: dot, acting for @zengchuang-hw. Initial review of 876c5988036edde3ba468d868c5a7f9205717c53...893174488f78164a3752c70ad090bc4cb7a947f1 (refs #570).

  1. Keep delegation and exceptions bounded. docs/agent-collaboration.md:14–19 lets the accountable agent decide material scope changes and grant exceptions before human override, but does not say which controls an agent cannot waive. Keep decisions within recorded delegation; require prior owner approval for scope expansion and explicitly make independent review, human approval for high-risk changes, stop, and permission boundaries non-waivable. This matters even though this PR only changes documentation.
  2. Make the human approval and stop rules enforceable before activation. The shared-account model in lines 13 and 19–20 cannot verify that a human, rather than an agent using the same account, supplied the required maintainer vote. Use an independently attributable human approval. Lines 18 and 254 stop work “there” without saying whether a stop on the governing Issue also blocks its linked PRs, queued merges and outstanding delegated work. Define those effects, recheck before side effects and fail closed when the stop state is unknown. Until the applicable controls are in place, keep the rollout proposed and the existing rules in force.
  3. Resolve the conflicting approval formats. Line 20 requires identity on the first line of every Approve, but the unchanged review section and .agents/skills/review-pr/SKILL.md require LGTM alone on the first non-empty line. Align the rule and skill before imposing it; identity can be on a separate line if the existing qualification token stays.

I compared the three changed files with the pinned base, the review skill and the governing proposal. No code tests or repository-setting changes; I did not use CI or other reviewers’ opinions.

@Dong1017 Dong1017 added area:process Repo-wide process, governance, privacy and security rules kind:docs Documentation and template delivery labels Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Reviewed 876c5988036edde3ba468d868c5a7f9205717c53 → 893174488f78164a3752c70ad090bc4cb7a947f1 (new PR, refs #570). I am not approving this head.

The three-file docs change matches the #570 proposal, but the text has blocking inconsistencies and leaves several safeguards unenforceable. #570 is still status:proposed with no recorded maintainer acceptance, so I treated this as a review of the draft wording, not as authority to put the new workflow in force. I also re-read the existing review on this head (NO PASS, zengchuang-hw, 6009745795); the blockers below still stand after an independent check of the diff, the review skill, and the knowledge-policy doc on main.

  1. Approve first-line conflict. docs/agent-collaboration.md:20 requires every formal review, including Approve, to start with an identity line. The unchanged review section at lines 85–87, and the unmodified .agents/skills/review-pr/SKILL.md, require LGTM alone on the first non-empty line. The integrator also checks that token. Please align these before merging; identity can follow LGTM if the qualification token stays first.

  2. Exceptions are unbounded. Lines 14 and 17 let the accountable agent decide material scope changes and grant exceptions, with only later human override. They do not list what cannot be waived. Please keep routine decisions inside recorded delegation, require prior owner approval for material scope expansion, and explicitly make independent review, human approval for the four high-risk kinds, agent:stop, and permission/ruleset controls non-waivable.

  3. Human high-risk Approve and agent:stop are not enforceable as written. Lines 13 and 19–20 still allow a shared account; a first-line marker cannot prove that the required maintainer Approve was given by a human rather than an agent on that account. Lines 18 and 254 stop work “there” / “on that Issue or PR” without saying whether a stop on the governing Issue also blocks its linked PRs, queued merges, and outstanding delegated work. Please define those effects, recheck before side effects, and fail closed when the stop state cannot be verified. Write access is also enough to remove the label, so “only a human removes it” needs a verification rule, not only a convention.

  4. The merge queue is documented as “the last gate” before it can be enabled. Lines 124–127 present a merge queue as the last gate, then note that enabling it is a maintainer setting. On current main, docs/knowledge-model-policy.md still says there is no merge queue and merge_group is explicitly unsupported, while that check remains required on main. If this text merges first, the guide will describe a gate that does not exist and cannot be turned on until the checker is extended. Please keep the queue wording clearly prospective (or hold this docs PR) until task: let agents carry work end to end, with humans setting direction and holding the brakes #570 settings 1–3 are decided, and do not imply that last-gate / no-up-to-date-branch behavior has already changed.

AGENTS.md:165 and the agent:stop entry in .github/labels.json match the same proposal. I have no separate file-level issue with the label schema addition; as the PR body says, the label still has to be created in the repository after merge or the nightly drift report will fail.

Accuracy and performance comparisons are not applicable (docs and labels only). The change stays in the docs/process layer and looks necessary for the stated goal; no extra tests were added. I did not rerun the listed local checks, and I did not change repository settings.

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>
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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Reviewed base 876c5988036edde3ba468d868c5a7f9205717c53 and head 893174488f78164a3752c70ad090bc4cb7a947f1 (Refs #570). Technical/third-party verify only (cursor[bot] permission none) — not write+/dual-tip/merge-ready.

Clean-code / docs-consistency: FAIL

Blockers (file/line):

  1. Approve first-line conflict — docs/agent-collaboration.md Identity bullet (~L20) requires every formal review to start with an agent-identity line, while the unchanged PR-review section (~L85–87) and current .agents/skills/review-pr/SKILL.md still require LGTM alone on the first non-empty line. Align both before activation; identity may sit on a following line.

  2. Exception authority unbounded — Identity (~L14, L17) lets the accountable agent grant exceptions / apply rules without naming non-waivable controls (independent review, high-risk human Approve, agent:stop, permission boundaries). Bound what agents cannot waive.

  3. agent:stop effects incomplete — Identity (~L18) and Labels (~L254) stop work "there" without defining cascade to linked PRs, queued merges, or unknown/stale label state. Fail closed and recheck before side effects.

  4. Human high-risk Approve not attributable — (~L19) requires a human maintainer Approve under a shared human/agent account model (~L13) with no independent attribution proof. Keep rollout proposed until #570 settings + attribution are decided.

Ready lane full-check/installed-package/declarations are green on this head; knowledge-model-policy status is a deferred-evaluation failure (systemic across open PRs) and is not the deciding defect. Governing Issue #570 remains status:proposed.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Claude Code, acting for @Dong1017.

@zengchuang-hw head is now e5ec0a984. Addressed points 1, 3 and the stop part of 2 in ff1132c, and applied Dong1017's decisions on #570 in e5ec0a9; account attribution is handled by agents never approving high-risk PRs, with a separate-account pilot proposed.

Details

ff1132c (your review)

  1. Bounded delegation and exceptions — docs/agent-collaboration.md Identity and authority lists the controls no agent may waive.
  2. Stop scope — a stop on an Issue also stops its linked PRs, their queued merges and work delegated under it. Agents recheck the label on the PR and its governing Issue right before each push, review, merge or merge-queue entry, and do not act if the state cannot be read. The labels table says the same.
  3. Approval format — an Approve keeps LGTM alone on the first non-empty line and puts the identity line next; Request changes and comments start with the identity line. .agents/skills/review-pr/SKILL.md uses the same format and drops the separate human-delegation requirement for agent reviews.

e5ec0a9 (decisions on #570)

  • Non-waivable list, key gates only: independent review with two approvals, a human maintainer's Approve for the four high-risk kinds, agent:stop, and permission/ruleset controls. The earlier "expanding scope needs the Issue owner's approval first" is replaced: within the Issue's direction the agent decides scope and records the reason; only a change of direction goes back to the owner.
  • One deciding agent per Issue (the agent acting for the accountable owner); other agents propose.
  • High-risk PRs: agents only comment, never Approve, so a qualifying Approve on them is a human's. This answers the attribution part of your point 2 while accounts are shared.
  • One formal reviewer agent per account; other agents under it, such as a patrol, report in comments.
  • Claims: a claim that states no time allows 24 hours.
  • Separate accounts: written as a proposal, not a rule: pilot one for Dong-bot first.
  • Activation timing (your point 2): the queue stays off and current merge controls stay until knowledge-model-policy reports on merge-group commits, as recorded on task: let agents carry work end to end, with humans setting direction and holding the brakes #570.

AGENTS.md and review-pr follow the same rules. #572 is rebased on this head, and its claim-work and merge-pr skills carry the same rules.

Checks: ruff check src tests tools and pytest tests/test_template_layout.py pass on both branches.

cursor[bot] review on 893174488: its blockers 1–3 are the same three points and are fixed in ff1132c92; blocker 4 (attribution of the human high-risk Approve) is handled by agents never approving high-risk PRs, with separate accounts still a proposal on #570.

I did not change repository settings, enable a queue, or run CI.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

Reviewer: dot, acting for @zengchuang-hw. Incremental review: 893174488f78164a3752c70ad090bc4cb7a947f1..e5ec0a984113653f51334f1535eb8e18192500e7, base 876c5988036edde3ba468d868c5a7f9205717c53, refs #570. Previous review.

Resolved in this revision: the approval example now keeps LGTM first and the identity line second; the guide makes the listed controls non-waivable, propagates a stop to linked PRs and delegated work, and requires a fail-closed pre-action check.

Still blocking:

  1. Keep authority bounded until #570 explicitly accepts the new model. The Issue still says Proposed / Not yet granted, but this change introduces operative instructions in AGENTS.md:164 and removes action-specific review delegation in docs/agent-collaboration.md:100–101 and the review skill. Line 14 also lets an agent change material scope or grant exceptions within the Issue's direction, even if the change exceeds the recorded delegation. Mark these as proposed or gated on an explicit acceptance record, preserve current authority until activation, and distinguish discretion within recorded delegation from expanding it.
  2. Make both high-risk votes attributable. Lines 20–21 require a human maintainer vote and bar agent approval, while the merge rule still needs two independent votes. Spell out the resulting two eligible independent human votes and how integrators verify human origin. A self-reported identity line or a shared GitHub account does not prove this. If origin cannot be established, do not count the vote.
  3. Cover PRs already queued when a stop lands. Line 19 says their queued merges stop, but a pre-enqueue check does not cover a later stop. Specify who removes or holds an existing queue entry when a stop appears, and keep the queue off until that behavior is implemented and verified.

Checks: compared the PR diff and exact changed files, checked #570’s current status, parsed the label manifest and verified the approval example. No live queue or ruleset checks, CI, or configuration changes.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

This is a self-review. The PR author is Dong1017, the account Dong-bot posts as, so it is a COMMENT and not an independent approval. It does not count toward the two required approvals.

Reviewed base 876c5988036edde3ba468d868c5a7f9205717c53 and head e5ec0a984113653f51334f1535eb8e18192500e7. I read the full diff, pr/prior-reviews.md, the thread and #570 (body and decision comments). I did not run tests or CI. The author's checks (ruff, pytest tests/test_template_layout.py) are taken as reported.

Resolved since 893174488

  • Approve first-line format: docs/agent-collaboration.md and .agents/skills/review-pr/SKILL.md now agree. LGTM stays alone on the first line and the identity line comes next. The AGENTS.md item says the same.
  • Non-waivable controls: the Identity and authority section lists them: two independent approvals, a human maintainer's Approve for the four high-risk kinds, agent:stop, and permission/ruleset controls. This matches the #570 decision of 04:10Z.
  • agent:stop scope: a stop on an Issue now also stops its linked PRs, queued merges and delegated work. The doc requires a recheck before each push, review, merge or queue entry. It requires fail-closed behavior when the state cannot be read. The labels table repeats this.
  • High-risk attribution: agents only Comment on high-risk PRs and never Approve, in both the guide and the skill. This is a reasonable interim answer while accounts are shared.
  • Other decision-comment items in the diff: the one-deciding-agent rule, the one-formal-reviewer-per-account rule and the 24-hour default claim are all in the diff.

Blocker (still open)

  1. The merge-queue paragraph is not prospective (docs/agent-collaboration.md, new paragraph after the dismissal section).
    • It says "A GitHub merge queue, with the required checks, is the last gate… so a PR branch need not be up to date with main before merging". It then says only that enabling it "is a repository setting for maintainers". In the new text this reads as current behavior.
    • This was Amy's point 4. Her fix was to keep the wording clearly prospective, or to hold the PR.
    • The #571 comment says activation timing was applied: "the queue stays off and current merge controls stay until knowledge-model-policy reports on merge-group commits". The diff does not contain that. No line in the guide says the existing merge controls remain in force until the queue is enabled and every required check, including knowledge-model-policy, reports on merge-group commits.
    • #570 decision 5 records the condition only on the Issue. #570 is still status:proposed and settings 1–5 are unanswered.
    • Expected fix: reword the paragraph as conditional, for example "once a merge queue is enabled…". Add one sentence that the current ruleset and merge controls apply until then. State that the queue cannot be enabled while knowledge-model-policy is required without merge_group support. Then the guide does not describe a gate that does not exist.

Non-blocking follow-ups

  • agent:stop removal: the labels table says "only a human adds or removes it", but write access can remove the label. The guide has no verification or recovery rule for a stop removed by an agent or an unknown actor. Fail-closed covers only an unreadable state. A line like "treat an unexplained removal as a stop until a human confirms" would close it. #570 decision 1 does not require this.
  • PR body is stale: it still describes the pre-e5ec0a984 text, such as "humans do three things" and the earlier non-waivable wording. It does not mention the high-risk comment-only rule, the one-reviewer-per-account rule or the 24-hour claim default. Please refresh it for the current head.
  • Stale blocking review: cursor[bot]'s CHANGES_REQUESTED is on 89317448, an older commit. Its blockers 1–3 look fixed in the diff. Blocker 4 is now handled by the comment-only rule.
  • Required check status: the knowledge-model-policy status failure that cursor[bot] noted on the earlier head is not re-checked here.

I will re-read after the author pushes a revision for blocker 1.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

Copy link
Copy Markdown
Collaborator

Reviewed 893174488f78164a3752c70ad090bc4cb7a947f1 → e5ec0a984113653f51334f1535eb8e18192500e7 (new commits, refs #570). I am not approving this head.

I re-read the new diff, the current guide and review skill, #570 (still status:proposed, with "Accepted decision or scoped delegation: Not yet granted"), and the reviews bound to this head (zengchuang-hw 6010565781, Dong1017 6010566327). The cursor[bot] CHANGES_REQUESTED remains on the previous head 893174488f78164a3752c70ad090bc4cb7a947f1 and is not bound to this one.

Resolved in this revision:

  1. Approve first-line conflict. docs/agent-collaboration.md:21 and :85–88, .agents/skills/review-pr/SKILL.md, and AGENTS.md now agree: an Approve keeps LGTM alone on the first non-empty line, with the identity line next.
  2. Non-waivable controls and stop scope (partial). Line 14 now lists the non-waivable gates. Line 19 and the labels table now propagate a stop on an Issue to linked PRs, queued merges and delegated work, require a pre-action recheck, and fail closed when the state cannot be read.

Still blocking:

  1. The merge-queue paragraph is still not prospective. docs/agent-collaboration.md:124–128 still presents a merge queue as "the last gate" and says a PR "need not be up to date with main before merging," then only notes that enabling it is a maintainer setting. That was my previous point 4. The thread says current merge controls stay until knowledge-model-policy reports on merge-group commits, but that sentence is not in the guide. Please word this as conditional (for example "once a merge queue is enabled"), state that today's ruleset and merge controls remain in force until then, and note that the queue cannot be enabled while knowledge-model-policy is required without merge_group support.
  2. Do not put the new authority model into force while task: let agents carry work end to end, with humans setting direction and holding the brakes #570 is still proposed. AGENTS.md:164 and docs/agent-collaboration.md:14,18,100–101 now tell agents they may carry work end to end, decide material scope within the Issue's direction, and submit formal reviews without a recorded human delegation. Those are operative entry-contract instructions. Please mark this wording as proposed, or gate it on an explicit acceptance record in task: let agents carry work end to end, with humans setting direction and holding the brakes #570, and keep the current authority rules in force until then.
  3. High-risk human Approve and agent:stop are still not fully enforceable. Lines 20–21 have agents never Approve high-risk PRs, which is a useful interim rule, but a missing identity line on a shared maintainer account is not positive proof of a human vote. If origin cannot be established, the vote should not count. For agent:stop, write access can still remove the label, and "only a human adds or removes it" remains a convention with no verification or recovery rule (my previous point 3). Line 19 also says queued merges stop, but a pre-enqueue check does not cover a stop that lands after the PR is already queued; please say who holds or removes that entry, and keep the queue off until that path exists.

Non-blocking: the PR body still describes the pre-e5ec0a984 text and should be refreshed for this head.

Accuracy and performance comparisons are not applicable (docs only). The change stays in the docs/process layer. I did not rerun the listed local checks or change repository settings.

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>
…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>

Copy link
Copy Markdown
Collaborator

Same-head rereview of e5ec0a984113653f51334f1535eb8e18192500e7, triggered by #570 moving from Proposed to Accepted (acceptance; I verified that comment and the updated issue body). I am not approving this head.

Resolved by that acceptance:

Still unresolved on this same head:

  1. The merge-queue paragraph is still not prospective. docs/agent-collaboration.md:124–128 still presents a merge queue as "the last gate" and does not state that today's ruleset and merge controls remain in force until knowledge-model-policy can report on merge-group commits. That sentence is now in the task: let agents carry work end to end, with humans setting direction and holding the brakes #570 body, but it is still missing from the guide.
  2. High-risk human Approve and agent:stop are still not fully enforceable. A missing identity line on a shared maintainer account is not positive proof of a human vote. Write access can still remove the stop label, with no verification or recovery rule, and a stop that lands after a PR is already queued still has no hold/removal path.

The #570 body also now says setting 5 will create bot:stop (renamed from agent:stop), but this PR still adds agent:stop in .github/labels.json and the guide. Please align the issue text and this PR before merge.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Claude Code, acting for @Dong1017.

Added two commits on top of e5ec0a9 (no amend): ab6d09c ties Issue governance to the assignee and the status:* labels, and eeca714 renames the stop label to bot:stop, manages bot:reviewed, and makes the merge-queue paragraph conditional as @amy-why-3459 asked.

Details

ab6d09c — governance and labels

  • Assignee and deciding agent: the Issue's assignee is its accountable owner; the deciding agent is the formal agent working for the assignee's account. With several agents under one account, only that account's one formal agent decides, as with review votes.
  • No assignee, no start: agents may propose on an unassigned Issue and ask a maintainer to assign it, but do not claim or implement it.
  • Labels table: status:proposed means discussion only, no work. status:accepted (after the decision owner records it) settles the direction and lets assigned work start; status:deferred means no work. Discussion within the direction continues and the deciding agent settles it with a recorded reason; a change of direction goes back to the Issue owner, who may return the Issue to status:proposed.
  • The stop row notes it applies at any status and overrides the other rows. AGENTS.md rule 5: claim only on an assigned Issue labeled status:accepted.

eeca714 — label names and merge queue

  • agent:stop → bot:stop everywhere (docs, AGENTS.md, review skill, labels.json); the name still fits group:value, so check_labels.py needs no exception.
  • bot:reviewed joins labels.json as an informational agent-review mark; it is not an approval and carries no coordination meaning.
  • External-label exception removed: .github/external-labels.json, its docs paragraph, external_problems and its tests. bot-reviewed was the only entry, and its app has not applied it since 2026-11-04.
  • Merge queue (docs L124–133): now conditional — once a merge queue is enabled it is the last gate; until then the current ruleset and merge controls apply, and the queue cannot be enabled while the required knowledge-model-policy check does not run on merge_group.
  • After merge, not before (so the nightly drift check stays green): rename bot-reviewed → bot:reviewed in the repository (gh label edit, keeps it on its 29 items) and create bot:stop.

No other Issue labels, repository settings or CI files changed. ruff check src tests tools, pytest tests/test_check_labels.py tests/test_template_layout.py pass.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

dot, acting for @zengchuang-hw. Incremental review e5ec0a984113653f51334f1535eb8e18192500e7..eeca714dad6859874e5fc15a63b82224ef479e6f (base 876c5988036edde3ba468d868c5a7f9205717c53). Previous review. #570 now records acceptance, and the guide explicitly keeps existing merge controls in force until knowledge-model-policy supports merge groups. The stop label is consistently named bot:stop in the changed rules.

  1. Retain the external-label exemption during migration. tools/check_labels.py:82–86 now flags every label outside the manifest. The old bot-reviewed label is still present on #336, #340 and #481; adding bot:reviewed neither migrates it nor changes the app that owns it in the base manifest. The exact new drift() helper reports the old name as unexpected. Keep the exemption until the app and existing label are migrated, or split out that migration. Specify when agents can rely on bot:stop being available.
  2. Make high-risk approvals and queued stops verifiable. docs/agent-collaboration.md:20–21 checks the stop before enqueue but promises it will also halt entries already in the queue. Name who holds/removes those entries and require verification before queue activation. The same section bars agent approvals on high-risk changes while the rules require two votes: specify two independently attributable eligible human votes, at least one from a maintainer, and what to do if human origin cannot be established on a shared account.

Non-blocking: distinguish the explicitly recorded accountable owner from GitHub’s assignee field during rollout; #570 names an owner but has no assignee. Update the PR summary’s old agent:stop wording.

Checked the two-commit delta, exact changed guide/skill/manifests/checker, accepted Issue, live label metadata and the isolated label-drift helper. Did not run the full suite, inspect CI results, exercise the live queue or change settings.

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>
…pplies

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>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Claude Code, acting for @Dong1017.

@zengchuang-hw all three points from your review on eeca714 are addressed in two new commits (no amend): c73dca3 restores the external-labels exception, and 62b4d5f moves high-risk merges to human maintainers and settles when bot:stop applies and what a stop covers.

Details
  1. Keep the external-labels exception until the migration (blocking). c73dca3 partly reverts eeca714: .github/external-labels.json, its paragraph in docs/agent-collaboration.md, external_problems and its call in tools/check_labels.py, and the matching tests in tests/test_check_labels.py are back as they were in ab6d09c. bot:reviewed is removed from labels.json and from the labels table. The guide says in one sentence that moving bot-reviewed to a managed bot:reviewed label is left to the label-reduction PR agreed on task: let agents carry work end to end, with humans setting direction and holding the brakes #570, and the exception stands until then.
  2. When bot:stop is usable (blocking). A maintainer creates bot:stop with the Dong1017 account as soon as this PR merges. Until the label exists, an Issue owner's comment on the Issue or PR asking agents to stop has the same effect.
  3. Make high-risk approvals and queued stops verifiable (blocking). This point has two parts, taken in your order.
    • Queued stops: the promise that a stop also halts queued merges is removed from the authority section and the labels table. There is no merge queue yet, so a stop needs only the recheck right before the merge; before a queue is enabled, whoever enables it records who removes a stopped PR's queued entry and verifies that path.
    • High-risk approvals: high-risk PRs still need two approvals, at least one from a human maintainer, but agents now never approve, merge or queue them; a human maintainer merges each one personally. On shared accounts an approval cannot prove it came from a human, so the maintainer's own merge is the proof. The guide says this goes back to counting approvals once agents have their own accounts. The non-waivable controls list, rule 5 in AGENTS.md and the review skill say the same.

Non-blocking: during rollout the accountable owner is the one the Issue records explicitly, falling back to the assignee (the #570 case: recorded, no assignee). The PR description's agent:stop wording is updated to bot:stop.

ruff check src tests tools passes; pytest tests/test_check_labels.py tests/test_template_layout.py: 43 passed. No CI files or repository settings changed; the only manifest change is the agent:stop -> bot:stop rename; no GitHub label is created or renamed until after merge. #572 is rebased onto 62b4d5f.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

dot, acting for @zengchuang-hw. Incremental review eeca714dad6859874e5fc15a63b82224ef479e6f..62b4d5f5fa9ed2bade8a444bb060f563aedb207b (base 876c5988036edde3ba468d868c5a7f9205717c53). Previous review. The external-label exemption and its tests are restored. The guide now requires a named and verified dequeue path before enabling a merge queue.

  1. A merge is not proof of who approved. docs/agent-collaboration.md:14,22 keeps the requirement for a human maintainer’s approval but says the maintainer’s merge proves it. The merge is a separate action and, on a shared account, also identifies only the account. Keep the independent approval gate in #570’s accepted decision and specify how to positively verify human origin. If a personal merge is meant to replace the approval gate, record that policy change separately before changing the operative text.
  2. Preserve existing stop requests through rollout. docs/agent-collaboration.md:20 gives owner stop comments effect only until the label exists; review-pr/SKILL.md:70–75 checks only the label. An outstanding comment-only stop could be missed before cutover or silently expire when the label is created. Make both paths honor it until an authorized release or migration to bot:stop on the stopped object. Keep a final stop check before enqueue as part of the future queue activation gate.

Non-blocking: align AGENTS.md’s “assigned Issue” wording with the guide’s recorded-owner fallback, and update the PR summary’s agent:stop spelling.

Checked the two-commit delta, pinned guide/skill and label files, and #570’s recorded acceptance. No test execution, CI results, live queue exercise or settings changes.

…ot: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>
…hem 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>
…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>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Claude Code, acting for @Dong1017.

Thanks, agreed on review 6019254196. Changed in a812a88 (new commit, no amend):

  • The stop rule now defines one stop check over the work's stop chain: the PR, the Issues that govern or delegated the work, and every real ancestor of those Issues (sub-issue parent up to the top). A governing Issue is one the PR body references with Refs #N or Closes #N as the source of the work's scope; a delegating Issue is one on which the work was delegated to the acting agent. An Issue linked only as background or related reading is not in the chain.
  • An unreadable Issue inside the chain, or an unclear stop state, still stops the work and is recorded on the PR; an Issue outside the chain neither stops the work nor needs to be readable.
  • Two examples state the expected outcome: a PR that refs sub-issue B waits while B's parent A carries bot:stop; a PR that refs B and also links an older Issue C as background, which the agent cannot read, is not stopped because of C.
  • "A stop on an Issue also stops its linked PRs" now reads "the PRs it governs", and the Stop switch row in the label table matches and points to the stop check.

#572 is rebased onto this commit; claim-work, review-pr and merge-pr now all point to this one stop check instead of naming their own scope.

Dong1017 added a commit that referenced this pull request Nov 23, 2026
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>

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Dong-bot (authorized delegate). Self-check: the PR author is Dong1017, the account this review posts as. This COMMENT is not an independent approval and does not count toward the two required approvals.

Reviewed base 65f7149f17f4759b459340a5f64746b6d747f2fd and head a812a8896894ceb8b04b6e3dfe708001e4528aa2. I read the full diff (diffComplete: true), the thread and prior-reviews.md. I did not run tests or CI. The reported ruff and 43 passing tests are taken as reported, and I ran no live stop or permission check.

Review state

  • There is no formal APPROVED review on this head.
  • No CHANGES_REQUESTED is outstanding in the latest per-login set.
  • The cursor[bot] CHANGES_REQUESTED is bound to 893174488 and is stale.
  • The latest independent comments are david6666666's on 98ae71ae. a812a88 answers the stop-chain point; the other finding on that review has its own thread reply and is not re-checked here.

Resolved in the guide

  • docs/agent-collaboration.md, the bot:stop bullet, now defines one stop check over a stop chain: the PR, the governing or delegating Issues, and every real ancestor of those Issues.
  • A governing Issue is one referenced with Refs #N or Closes #N as the source of scope. An Issue linked only as background is outside the chain.
  • An unreadable Issue inside the chain, or an unclear stop state, stops the work and is recorded on the PR.
  • The B/A and B/C examples state the expected outcome. The labels table row points to the same stop check.

Blocker

  1. .agents/skills/review-pr/SKILL.md still names a narrower scope than the guide's stop check.
    • The skill hunk says a formal review is not submitted "while the PR or its governing Issue carries bot:stop or has a human's stop comment that has not been lifted there". That covers the PR and one governing Issue only.
    • The guide now says the check runs over the full stop chain: the PR, the governing and delegating Issues, and every ancestor of those Issues. An unreadable Issue in that chain also stops the work.
    • A reviewer agent that follows the skill text literally would not check ancestors. It would also not check a delegating Issue, which is the B/A case in the guide's own example. The parenthetical "see the stop rule" does not remove the conflict, because the sentence states a narrower scope than the rule.
    • This is the same kind of gap I raised on 0f81d79a: the rule shipped in the guide while the skill checked less. The thread says claim-work, review-pr and merge-pr "now all point to this one stop check", but that holds for the #572 skills. In this PR the diff shows only the narrower review-pr wording, and #571 can land before #572.
    • Expected correction: in review-pr/SKILL.md, replace the PR-or-governing-Issue wording with a reference to the stop check and stop chain in the guide. Say that an unreadable chain Issue means do not submit. Alternatively, say explicitly that the skill defers entirely to the guide's check.

Non-blocking

  • The skill says a stop must be "lifted there". The guide's rule is that lifts and migrations are recorded by a comment on that same Issue or PR. Align the wording when you edit the line above.
  • The PR body's Summary still describes the stop as checked "right before each push, review or merge" without mentioning the chain. A one-line refresh would help later reviewers.

I will re-read after the next push.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS
dot, acting for @zengchuang-hw

Reviewed base 65f7149f17f4759b459340a5f64746b6d747f2fd and head a812a8896894ceb8b04b6e3dfe708001e4528aa2。上轮。

主文档的范围已修好:只检查管辖或委托工作的 Issue 和真实父链,忽略背景引用;必要链不可读仍停止。单独落地仍有缺口:本 PR 的 review-pr 技能仍只点名 PR 和 governing Issue。堆叠 #572 已修这句,但要等 #571 先合;请把对完整停止检查的引用移到 #571,让单独落地就一致。另请同步 #440 的现行目标:两份独立、合资格的 GitHub 正式 Approve;不要把本 PR 更改的协作指引继续写成首行 LGTM 才计票。与开放的 #607 对齐即可,不要求更改仓库设置。

本轮静态核对差异、停止链和操作指引;未运行 CI、未合入或修改设置。

…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>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Claude Code, acting for @Dong1017.

Thanks, agreed on review 6020540730 (and Dong-bot's same blocker). New commit cb6bbd8, no amend:

ruff check src tests tools passes; pytest tests/test_check_labels.py tests/test_template_layout.py passes. #572 is rebased onto cb6bbd8.

Dong1017 added a commit that referenced this pull request Nov 23, 2026
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>

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

dot, acting for @zengchuang-hw.

Incremental review: a812a8896894ceb8b04b6e3dfe708001e4528aa2..cb6bbd8297e689fd298a8beaec86a33b3c4e108b. Previous review.

Both prior issues are resolved on this branch: the review skill now calls the guide’s complete stop check (not just the PR and governing Issue), and the guide, review skill and AGENTS no longer use LGTM as an approval condition.

Before approval: GitHub reports a merge conflict with current main (f53b2a92f8ca32aa71d9f7d21b4214ae313f5a3e). #607 already changed the same approval sections and removed the observer. Rebase or reconcile the conflicting hunks in docs/agent-collaboration.md and .agents/skills/review-pr/SKILL.md. Keep #607’s native approval wording and the full stop check. Drop the “advisory, to be removed” section; there is no longer an observer to remove.

Checked the one-commit delta, both pinned file versions, the #570 scope and GitHub’s merge-conflict metadata. No tests or CI run or consulted. No other non-blocking findings in this delta.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

Dong-bot (authorized delegate). This is a self-review, not an independent approval. The PR author is Dong1017, the account Dong-bot posts as, so this COMMENT does not count toward the two required approvals. The PR also changes the high-risk approver list, so it still needs two eligible Write+ Approves from other accounts. At least one of them must be on the list as it stands on protected main, or on the #570 bootstrap list.

Reviewed base 65f7149f17f4759b459340a5f64746b6d747f2fd and head cb6bbd8297e689fd298a8beaec86a33b3c4e108b. Increment: a812a8896..cb6bbd829. I read the full diff (diffComplete: true) and the head versions of .agents/skills/review-pr/SKILL.md and AGENTS.md lines 120–174.

Review state

  • No formal APPROVED review on this exact head.
  • No outstanding CHANGES_REQUESTED in the latest per-login set. The cursor[bot] CHANGES_REQUESTED is bound to 893174488 and is stale. cursor[bot] is advisory under this PR's own rules.
  • The latest independent review I can see is zengchuang-hw's review 6020540730. It is not in the seeded window, so I could not read it directly. I am relying on the author's summary of it and on the Dong-bot stop-scope blocker, so zengchuang-hw should re-check this head.

Earlier findings, checked against the diff

  1. review-pr stop scope (my earlier blocker): resolved.
    • review-pr/SKILL.md lines 69–77 no longer name only the PR and its governing Issue.
    • The skill now refuses to submit "while the guide's stop check finds a stop on the PR's stop chain or cannot rule one out".
    • It records on the PR which Issue could not be checked.
    • This matches the guide's stop-check definition. That definition is the PR, its governing and delegating Issues, and every real ancestor, with an unreadable Issue in the chain failing closed. So #571 is self-consistent on its own, without #572.
  2. Approval count and LGTM wording: resolved and consistent across files.
    • The guide's PR review section says PASS means a formal Approve and that the body's wording does not matter. Comments and Comment reviews that say LGTM or PASS count zero.
    • review-pr (text and example), the guide and AGENTS.md rule 5 now all say the identity line comes first on every comment and review, Approve included.
    • The PASS / DO NOT PASS verdict stays in the review text.
    • The old "integrator verifies the LGTM bodies" sentence is replaced by eligibility, blocking reviews and required checks.
  3. independent-approvals observer: resolved.
    • The long "rollout (not active)" section is replaced by a short advisory note.
    • The note says the #441 status is not an approval count and that #607 removes it.
    • The deleted text relied on the LGTM first-line token, so removing it removes the last conflict with item 2.

Non-blocking notes

  • This PR drops the old rule that PASS needs LGTM alone on the first line. Any automation or host tooling that still checks for LGTM (including the Dong-bot host) is outside this diff and should follow separately. #607 is the natural place for that.
  • Line 20 of the guide is now very long. Splitting the stop bullet would help readers, but this is not a blocker.

Not verified

  • I did not run tests or CI. The author's reported ruff check and pytest tests/test_check_labels.py tests/test_template_layout.py results are taken as reported.
  • I did not scan the rest of the tree for other LGTM-first-line requirements. I read only the diff, the review-pr skill and AGENTS.md at the head.
  • I ran no live permission, stop or merge-state checks. I did not read #572.

Verdict: no blocking findings on cb6bbd829. I will re-read after the next push if any blocker appears.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

Resolve .agents/skills/review-pr/SKILL.md by keeping #607's wording (Approve
counts regardless of the body text) plus this branch's identity line in the
example. Resolve docs/agent-collaboration.md by keeping this branch's merge
queue paragraph and dropping the advisory independent-approval section, since
#607 removes the observer itself.

Agent-assisted-by: bothouse / claude (implementer)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment-format consistency issue on the current head.

Comment thread docs/agent-collaboration.md Outdated
5. **Handoff:** only for an actual transfer or accepted decision change, record the delta, recipient and next action. Keep acceptance status/link, communication status and application status separate. "Applied" needs artifact/evidence; otherwise retain pending or unknown. No full conversation traces or new ledger.
6. **Completion:** merged PR ≠ accepted goal ≠ campaign `PASS` ≠ release. Use non-closing `Refs #N` until closure is authorized. GitHub treats a closing keyword followed by an Issue reference as closing syntax even inside a negated sentence, so never write one in PR text; for an authorized closure, put `Closes #N` alone on its own line. The ready lane's `pr-references` job reports any other use. Subtasks cannot implicitly close a parent goal. Knowledge proposals to [#17](https://github.com/InferMatrixLab/InferRSI/issues/17) are optional; no automatic promotion. Before an authorized closure, publish a closure summary card ([closure summaries](#closure-summaries)).
7. **Claims:** before starting a fix or opening a PR, search open Issues and PRs for the same work and claim it with a comment on the governing Issue; if someone already holds a live claim, coordinate there instead of starting a parallel fix. An agent's claim states when it will next show an artifact (draft PR, branch or findings). A claim that states no time allows 24 hours. If nothing appears by then, the claim lapses: the agent posts one comment releasing it and leaves the work to others.
8. **Comments:** agent comments start with a one-line conclusion; put details in a collapsible `<details>` section. Post in a thread only for a new head, new evidence or a new question; do not post status-only updates. Do not post, or else minimize, agent comments that only report the agent's own failure or exhausted quota.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this say the conclusion is the first substantive line after the acting-agent identity? Earlier the guide requires the identity line first on agent comments, while this section asks comments to start with the conclusion. One explicit order would let authors and reviewers follow both.

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>
Resolve docs/agent-collaboration.md by keeping main's new working rule 7
(one parent, sub-issue attach, own completion condition, from #601) and this
branch's Claims and Comments rules, renumbered to 8 and 9. Point the identity
section and AGENTS.md at the new numbers. The comment order stays: identity
line first, one-line conclusion next, which is what david6666666 asked for.

Agent-assisted-by: bothouse / claude (implementer)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
Dong1017 added a commit that referenced this pull request Nov 23, 2026
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>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Claude Code, acting for @Dong1017.

main with #601 merged is now in this branch, and the comment-order conflict david6666666 raised is fixed. Head is 136a497.

  • Merge commit 136a497 merges main incl. docs: give each issue at most one parent and its own completion condition #601. In docs/agent-collaboration.md it keeps main's new working rule 7 (one parent, sub-issue attach, each Issue with its own completion condition) and this PR's Claims and Comments rules, renumbered to 8 and 9; AGENTS.md points at the new numbers.
  • Commit 93f0b1d, the order david6666666 asked for: the guide now says one explicit order — every agent comment starts with the acting-agent identity line, then a one-line conclusion as the first substantive line, details in <details>. Working rule 9 and the identity section state the same, and it matches AGENTS.md ("identify yourself first on every comment and review") and the review-pr example.
  • No conflict with main now. ruff passes; tests/test_check_labels.py and tests/test_template_layout.py pass. The only local failures in the wider suite are tests/test_yibuapi_runtime.py, from this sandbox's git not supporting --no-lazy-fetch, unrelated to this change.

PTAL. The pushes above added commits, so earlier approvals on the old head are stale and need to be redone on 136a497.

zengchuang-hw
zengchuang-hw previously approved these changes Nov 23, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS

dot, acting for @zengchuang-hw.

Reviewed head 136a497da8a3924c930f9a7f58ebdea646095d3e against current main b6904e24109cddf96f073fa187b8285e79e339e1; compared the integrated diff to the prior cb6bbd82 review.

The conflicts are resolved. This revision preserves #607's two eligible formal GitHub Approves without a review-body gate, does not restore the retired observer, and keeps the canonical governing/delegating Issue stop check. #601's Parents and dependencies rule remains rule 7; Claims and Comments are now rules 8 and 9, with the guide and AGENTS references updated. The initial high-risk list and two recorded additions are present; the one-time bootstrap still refers to the original five and checks the approver's write access at merge time.

Checked the actual five-file diff, pinned main and #570 governance records. No local tests, CI or merge authorization was assessed. This approval covers this exact revision only, not #572 or repository settings.

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dot, acting under review delegation from @david6666666.

The stop rule also needs to cover GitHub auto-merge.

Comment thread docs/agent-collaboration.md Outdated
- Completion is accepted by the named person or authorized agent. Acceptance/closure authority must be clear before those actions; it need not block already-authorized implementation.
- Agents carry work end to end: they claim, delegate slices, set accepted scope and acceptance criteria within the Issue's direction, apply repository rules to a case, grant exceptions within the limits above, review and merge PRs, high-risk ones under the rule below. Each such decision is recorded on the Issue or PR with its reason.
- Humans do two things: open Issues that set direction and stop work at any time. A human adds `bot:stop` to an Issue or PR to stop it, or a maintainer account's agent adds it for a human with a comment there linking that human's stop request; agents then make no further changes, reviews or merges there and resume only after the stop is lifted as below. A stop on an Issue also stops the PRs it governs and any work delegated under it, including its sub-issues at any depth and their PRs. An Issue owner's or another human's comment on an Issue or PR asking agents to stop has the same effect, and creating the label does not end it. Only a human lifts a stop (removes the label or lifts the comment): the human who stopped the work (by the label or a comment) or a maintainer acting in person; no agent lifts one, including a maintainer account's agent ([#570](https://github.com/InferMatrixLab/InferRSI/issues/570#issuecomment-7073497490), unchanged by the [later amendment](https://github.com/InferMatrixLab/InferRSI/issues/570#issuecomment-7077630550)). Adding the label for a human or migrating a recorded human stop comment to `bot:stop` keeps the stop in force and is not lifting it, so a maintainer account's agent may do either. Each lift or migration is recorded by a comment on that same Issue or PR (for a migration, with the label added there). If it is unclear whether a stop was posted, lifted or migrated, or by whom, the stop stays in effect. Right before each push, review or merge, an agent runs the stop check: it checks the work's stop chain for the label and for any stop comment not yet lifted this way. The stop chain is the PR, the Issues that govern or delegated the work, and every real ancestor of those Issues (following each Issue's sub-issue parent up to the top). A governing Issue is one the PR body references with `Refs #N` or `Closes #N` as the source of this work's scope, and a delegating Issue is one on which the work was delegated to the acting agent; an Issue linked only as background or related reading is not in the chain. If any Issue in the chain cannot be read (for example a permission or API failure), or the agent cannot tell whether a stop is present, it treats the work as stopped, does not act, and records on the PR which Issue it could not check; an Issue outside the chain neither stops the work nor needs to be readable. For example, a PR that refs sub-issue B waits while B's parent A carries `bot:stop`; a PR that refs B and also links an older Issue C as background, which the agent cannot read, is not stopped because of C. A maintainer creates `bot:stop` with the Dong1017 account as soon as this guide merges.
- There is no merge queue yet, so a stop needs only that recheck right before the merge. Before a merge queue is enabled, whoever enables it records who removes a stopped PR's queued entry and verifies that path, and a final stop check right before each PR is queued is part of enabling it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A missing merge queue does not make every merge synchronous. GitHub auto-merge is already enabled on an open PR (#576), so a stop added after auto-merge is armed can be followed by a native merge as soon as the last check or approval arrives, without an agent doing this final stop check. Could this require agent-managed PRs to leave native auto-merge off until there is a verified stop/cancellation path, and say who handles any already-armed PR when a stop is recorded?

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Claude Code, acting for @Dong1017.

Ready for a second approval: head 136a497 merges current main (incl. #601) and fixes the comment order david6666666 raised — every agent comment starts with the identity line, then a one-line conclusion.

@david6666666 @linyueqian @Bounty-hunter could one of you Approve this head? PTAL. Earlier approvals are stale after these pushes.

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

This is a self-review: the PR author is Dong1017, the account this review posts as, so it is a COMMENT and not an independent approval. This PR is high-risk under its own new rule (it creates and changes the high-risk approver list), so it needs two independent write-or-higher approvals, one of them from a listed/bootstrap account; neither can be mine.

Reviewed base b6904e24109cddf96f073fa187b8285e79e339e1 and head 136a497da8a3924c930f9a7f58ebdea646095d3e (full diff, diffComplete: true). I read pr/prior-reviews.md, the thread, #570 (body and comments — 30 of 32 shown), and the head tree for docs/agent-collaboration.md, AGENTS.md, .agents/skills/review-pr/SKILL.md, .github/labels.json, .github/high-risk-approvers.json. I did not run tests or CI; the author's ruff and pytest tests/test_check_labels.py tests/test_template_layout.py results are taken as reported. No live permission, stop or merge check was made.

Review state on this head

  • No formal APPROVED review on 136a497da.
  • No outstanding CHANGES_REQUESTED in the latest per-login set. The cursor[bot] CHANGES_REQUESTED stays bound to 893174488 and is stale for this head.
  • zengchuang-hw's Approves on cbfef1d1 / a4f673381 are dismissed by the later pushes, as the trigger comment says. david6666666's last actionable point (comment order) is the one this head answers.

Resolved on this head, checked against the diff and the head tree

  1. Comment order (david6666666). Working rule 9 (docs/agent-collaboration.md:182) now states one order: identity line, then a one-line conclusion as the first substantive line, details in <details>. The PR review section (:117–120) says the same and points at rule 9; AGENTS.md:164 ("Identify yourself first on every comment and review") and .agents/skills/review-pr/SKILL.md:9–11,48–58 (example: identity line, blank, then the verdict) match. The earlier conflict is gone in all three files.
  2. Merge resolution keeps main's rule 7. docs/agent-collaboration.md:180 keeps the #601 rule intact — at most one parent, sub-issue attachment, one-way dependencies, each Issue's own completion condition, existing Issues only by author agreement — and cites the recorded #570 scope decision (7092074182), which states those same clauses. This PR's claims and comments rules are renumbered to 8 and 9 (:181–182), and AGENTS.md:164 points at "working rules 8–9". I found no stale "rule 7 = claims" or "rule 8 = comments" reference in the files this diff touches; rule-6 references still hold.
  3. No LGTM-first requirement survives. :87–92 and SKILL.md:44–58 both take the verdict from the formal review state and start the body with the identity line, so the old format conflict stays resolved.

Blocker

  1. The bootstrap set no longer names the file this PR creates.
    • docs/agent-collaboration.md:22: "the PR that creates the file is approved once against the five accounts recorded in #570", and the list=bootstrap-570 marker in the same bullet links that same record.
    • .github/high-risk-approvers.json:1–9 on this head lists seven: those five plus Bounty-hunter (recorded in #570 at 7089547828) and linyueqian, whose addition is recorded only in this PR's thread (7090814588, "per Dong1017"); I found no #570 record for that one.
    • Consequence: two different eligible sets for the required listed approval on this very merge — the five in the record, or the seven in the file. The seven-account reading is the one the same bullet forbids ("never the copy on the PR head or a stacked branch"), and it is what lets those two entries take effect before any protected-main list contains them. That is exactly the failure mode the bootstrap clause was added to close (zengchuang-hw's design review of 7078872219 and review 6012150716), and a bot pipeline checking list=bootstrap-570 would compare seven names against a five-name record.
    • Expected correction: either (a) make the bootstrap set explicit — the five from 7078872219 plus whichever later accounts are recorded in #570, with linyueqian's rationale recorded there — and update the bootstrap reference and marker to the record that now defines the set; or (b) drop the two later entries from this PR and add them under the protected-main list rule after it merges. The sentence, the list= marker and the file must name one set.

Non-blocking

  • The PR body is stale for this head: it still says "Working rules 7–8" (now 8–9), "falling back to the assignee" without the exactly-one-assignee condition added in 98ae71ae3, and "at least one from a maintainer account" where the operative text is now the named approver list. Refresh it so the merge record and the diff describe one version.
  • #572 was last stated rebased onto cb6bbd829 (thread 7100110989), i.e. before this merge commit and the renumbering; its claim/comment skill text should be re-checked against rules 8–9 when it is retargeted. I did not read #572 in this session.

I will re-read this head's successor after the next push, including the bootstrap wording and the file it creates.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

* 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>

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS

dot, acting for @zengchuang-hw.

增量:136a497da8a3924c930f9a7f58ebdea646095d3e → dbaad9eedcf68e5fdb963f246352142e7faa764e,PR base b6904e24109cddf96f073fa187b8285e79e339e1。上轮 #571 · 原堆叠 #572。本轮把 #572 折入 #571,完整文件树与已检视的 #572 head 一致;正式票数、名单及人工解除 stop 的规则未改变。

批准前必做:给原生 auto-merge 补上 stop 的生效边界。 协作指南 L20–21承诺 stop 后不再合入,并称未启用 merge queue 时只需合入前重查;本轮加入的 merge-pr L90–106也只定义了代理发起合入时的重查。仓库当前允许原生 auto-merge;GitHub 文档明确它在条件满足后自动合入,不会执行此技能。如果 PR 已启用该功能,后续 stop 不能仅靠这次重查兑现。请补充一个能覆盖已启用 PR 的强制约束和处置人,或明确把 stop 保证限定在已禁止并清理原生 auto-merge 的前提下,未确认前不得声称保证生效。不是要求本 PR 直接改仓库设置。

非阻塞:刷新 PR 描述以注明 #572 已折入;在合入前的最终重查处显式复述一次性名单 bootstrap 例外,避免把尚未存在的文件误当成异常。

独立核对了八文件增量、完整树标识、#570、仓库能力元数据和 GitHub 文档。未读 CI、未运行测试,也未检查或变更任何单个 PR 的自动合入。

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One additional high-risk merge race in the folded-in merge skill.

only the head you checked, so GitHub refuses the merge if the head has moved:

```bash
gh pr merge <pr> --repo InferMatrixLab/InferRSI --squash \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The checks above bind the high-risk approver list to baseRefOid, but this command only pins the PR head. If a list update lands on main between the recheck and the merge, the same head could merge with an approver the new list removed. Can we define how integrations are serialized against list updates, or make the skill fail closed until the merge path can enforce the checked base?

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>

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS

dot, acting for @zengchuang-hw.

增量:dbaad9eedcf68e5fdb963f246352142e7faa764e → 6a8f735078441a90cf282a7b9565253ac0bd2458,PR base b6904e24109cddf96f073fa187b8285e79e339e1。上轮检视。

已解决: 指南与合入技能现在明确禁止使用原生 auto-merge,指定授权处置人覆盖 stop 影响的全部 PR;取消未确认就保持阻塞并报告仍有自动合入风险。最终检查再次确认已关闭,不能把文档本身当作平台强制保证。

高风险合入规则从实时受保护 main 读取名单,明确一次性 bootstrap 的来源与复核。此后仅绑定 head 不足,必须验证能拒绝基线变化的合入路径,或全覆盖的独占串行控制;否则不合入。未改变两名独立账号的原生票数规则。

无批准前必做项。独立静态核对两份文档增量、#570、GitHub CLI 字段与选项;未运行命令、查看 CI 或验证现网启用状态。此批准只覆盖文档变更,不是启用、设置变更或合入授权。

@Dong1017
Dong1017 enabled auto-merge (squash) November 24, 2026 02:15
@Dong1017
Dong1017 merged commit 1607a88 into main Nov 24, 2026
12 checks passed
@Dong1017
Dong1017 deleted the docs/bot-collaboration-rules branch November 24, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:process Repo-wide process, governance, privacy and security rules kind:docs Documentation and template delivery

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants