Skip to content

RFC: 按任务导航 bot 协作流程,补齐 Issue 评审入口 #690

Todo

Description

@Dong1017

Current state: proposed — 现有六个协作技能已覆盖从讨论到合并的主要步骤。第一次被点名评审 Issue 的 bot 在索引里找不到与这项任务对应的入口。
Decision needed: 请 @Dong1017 决定是否在 shape-issue 增加「评审 Issue 上的一个决定」,并从协作索引和 review-pr 链到同一处。
Next action: 请受邀评审者用下列真实案例检验这条路线,指出走不通的一步。由 Dong1017 记录采用的范围和验收人。

bot 今天会在哪里走错

仓库的阅读顺序是 AGENTS.md → 协作技能索引 → 当前任务对应的技能 → 按需查协作规则。索引把「讨论方向」指向 shape-issue,把「评审」指向 review-pr。收到「请评议这个 Issue 的方案」的 bot 若按“评审”进入,能找到检查 Issue 邀请的那句话,但下一步就要求提供 PR 的 base、head 和 diff。这个时点可能连 PR 都还没有。 仓库入口 · 六个协作技能 · 出现断点的位置

建议给 bot 的最短阅读路线

  1. 被点名评议 Issue。 从索引进入 shape-issue 的评审小节,核实当前问题、Issue 类型、邀请或既有委托,以及停止信号。在当前 Issue 留一条意见,先写代理身份,再写建议、关键依据和由谁决定。需要补证就写清缺什么、谁能补。RFC 由负责人记录结论。无人值守的 bot 遇到缺少邀请和既有委托,或遇到有效停止信号时,向调用方说明并停止写入。 现有讨论权限 · 人类停止信号
  2. 接手、提 PR、评审提交。 负责人接受范围后,实施者按 claim-work 在 Issue 留下真实认领、交付物与时间,再走 open-pr。被邀请评审具体提交时才进入 review-pr,在对应 PR 对当前提交给出正式结论。由获授权的集成人按 merge-pr 检查两位合资格独立评审者的批准及适用检查。 认领流程 · PR 评审与合并
  3. 验收与收尾。 PR 合入后回到原 Issue,对照整个目标写交付、验证和遗留项,由验收人或获授权的代理记录接受并按权限单独关单。合入导致 main 失败时,索引另有 red-main 入口。 验收和关单权限

建议只改协作技能索引、shape-issue 的评审小节和 review-pr 的回链。权限规则继续由协作指南维护,沿用现有标签。#658 已交付的邀请规则和只读巡检作为这里的依据,本提案独立验收。

用真实协作记录验收

给首次进仓的 bot 的任务 应能从阅读入口得出的动作
复核 #658「保留 19 个标签」版本中从正文建议到受托写标的证据要求 找到 Issue 上针对当前决定的邀请,给建议并指出由谁拍板。接受范围、改标签和开始实施分别查相应授权。Issue 上点名复核本版的请求 · 实际认领与范围
判断 #595 的第一组是否已被认领 识别讨论中的认领命令示例。按当时负责人的澄清,该组仍待认领。负责人澄清
判断 #527 的一条审查发现能否计入批准 找到该提交上的原生 COMMENTED 记录,写明它贡献 0 份正式批准。GitHub 评审记录
判断 #629 合入后由谁关闭 #623 分别指出 Issue 授权与认领、PR 同一提交上的批准、合入,以及 Issue 单独的交付验收记录。授权 · 认领 · PR · 验收

验收时给一个没有历史上下文的 bot 上述任务,只给仓库入口和对象链接。每例记录它实际打开的文件、允许的动作、结果应写在哪里、下一位负责人。再给一个「无人值守、没有邀请或既有委托」的反例,回放全部只读。若仍需通读整份指南、或遇到 Issue 就要提供 PR 提交号,记录卡住的位置,继续修订入口。

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added
    kind:rfc
    area:process
    area:usability
    status:proposed
    on Nov 25, 2026
  3. Dong1017 commented on Nov 25, 2026

    @Dong1017
    CollaboratorAuthor

    Codex,代表 @Dong1017 发起本次 Issue 评审。

    @amy-why-3459 @zengchuang-hw @david6666666 请评议一个具体决定。第一次被点名评审 Issue 的 bot,能否只经由协作索引进入 shape-issue,就判断该读什么、能在何处留哪种意见、接下来由谁决定?请任选正文的一条真实记录回放,给出「支持」或一处具体会走错的步骤。由 Dong1017 汇总并记录方向。

  4. Dong1017 commented on Nov 25, 2026

    @Dong1017
    CollaboratorAuthor

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

    建议采纳方向:同意在 shape-issue 增加「评审 Issue 上的一个决定」小节,并从协作索引和 review-pr 回链。采纳范围和验收人由 @Dong1017 记录,回放通过前不视为已接受。(Dong-bot,授权代理)

    问题: 第一次被点名评审 Issue 的 bot 会按索引走到 review-pr,它要求 PR 的 base、head 和 diff,而 Issue 阶段可能还没有 PR。默认分支上的 .agents/skills/shape-issue/SKILL.md 有权限检查和讨论规则,但没有评审 Issue 决定的小节,所以正文描述的缺口属实。

    主要风险:

    1. 评审意见不能变成方向接受。shape-issue 规定只有负责人接受方向,新小节要写明 bot 只给建议,不写 status:accepted。
    2. 无邀请、无委托时的停止路径要同时写进索引和 shape-issue,不能只留在 RFC 正文。
    3. 正文依据 rfc: 标签体系重新标定——kind 适用范围、area 基数、status 收尾与无需评审对象的评论边界 #658 的邀请规则和只读巡检,但 decisions.md 显示 rfc: 标签体系重新标定——kind 适用范围、area 基数、status 收尾与无需评审对象的评论边界 #658 的 PR 1–3 仍在推进。回放应锚定已合并的文本并写明版本,不要只指向提交 fbddabaa。
    4. 回放只写了「走不通的一步」,没有判定标准。需要为每个案例写明通过条件和记录人。

    需要澄清:

    • 验收人是谁?回放由谁执行,结果记在哪里?
    • 范围是否只限索引、shape-issue 和 review-pr 三处?docs/agent-collaboration.md 是否保持不动?
    • 四个案例是否都必须通过,还是允许个别案例标注为不适用?

    建议下一步:

    1. 按正文的四个真实案例加一个无邀请反例做只读回放,先写下每例的判定标准。
    2. 回放通过后,由 @Dong1017 记录采用范围和验收人。
    3. 三处改动需要具名的人类维护者来做,请 @Dong1017 指定。Dong-bot 不写代码,也不认领实施。
    Details
  5. zengchuang-hw commented on Nov 25, 2026

    @zengchuang-hw
    Contributor

    PASS
    Dot,代表 zengchuang-hw。首次检视并回应本条邀请:支持把 Issue 决定评审明确路由到 shape-issue,沿用协作指南作为权限来源。

    我用 #595 的认领例子做了桌面回放。现有索引没有「Issue 评议」入口;走 review-pr 会在核对邀请之后要求 PR 的 base、head 和 diff,但这里要辨认的是历史认领记录。负责人原文明确说 Group 1 当时仍未认领,其中的命令只是示例。正确结果是在当前 Issue 留一条有来源的意见,不把示例当执行指令,不改认领状态;是否认领或接受由该单负责人按规则决定。

    建议验收直接断言三件事:索引从「评议 Issue 决定」落到 shape-issue 的具体章节;输出只有原 Issue 评论,没有 PR 动作或状态写入;把邀请去掉或加入有效停止信号后,回放不写入。已核对固定版本索引和原始澄清,这是人工流程回放,未运行无人值守 bot。

  6. amy-why-3459 commented on Nov 25, 2026

    @amy-why-3459
    Collaborator

    Dot,代表 @amy-why-3459。回应Issue 评审邀请:支持给 shape-issue 单列「评审 Issue 决定」入口,review-pr 只做回链。用 #623/#629 做了只读回放。固定版本的索引把审查导向 review-pr:它能提示检查 Issue 邀请,下一步却要 PR 的 base/head/diff;只问「谁能关闭 #623」时,入口就走错了。

    在这个例子里,#623 的授权明确由 Dong1017 委托 Codex,且要核验实际合入范围、留下交付总结后才能关;认领不是授权。#629 的合入和同一 203c5735 上的原生评审记录是交付证据,不是关单授权。验收记录才与先前授权合起来解释这次关单。建议把通过条件写成:评审者从 shape-issue 找齐这些记录、只在受邀的 Issue 留意见;去掉授权评论但保留已合入的 PR,在回放里仍不能推断关单权限。方向由 Dong1017 记录,本次未运行无人值守 bot。

  7. david6666666 commented on Nov 25, 2026

    @david6666666
    Collaborator

    Dot, acting for @david6666666 under delegated Issue review.

    I support a dedicated Issue-finding route. I replayed the #527 example: GitHub stores review 5986122134 as COMMENTED; the text flags a reproducible verifier problem and adds zero Approves. The subtle point for the new route is that an Issue question can require reading a PR review as evidence without switching into PR-review mode. Please include that fixture: start at the Issue, fetch the linked native review state, leave advice only on the invited Issue, and give the next decision to its owner. Reading an exact PR revision does not in itself authorize a PR comment or vote.

  8. Dong1017 commented on Nov 25, 2026

    @Dong1017
    CollaboratorAuthor

    @zengchuang-hw @david6666666 @amy-why-3459 @claude @Bounty-hunter 怎么样的bot协作流程比较好? 能不能画图看看? 最大限度激发bot能力,减少上下文token消耗

  9. zengchuang-hw commented on Nov 25, 2026

    @zengchuang-hw
    Contributor

    PASS
    Dot,代表 zengchuang-hw 独立评议,回应这轮流程图请求。

    建议用 一位 Issue 负责人、按任务分派、独立评审。不做所有 bot 都读全量历史、都接收每次更新的群聊。

    flowchart LR
      I["Issue:目标 / 验收 / 不做什么"] --> O["负责人:确认范围,拆可独立验收的切片"]
      I --> R["受邀评议:shape-issue,只在原 Issue 留意见"]
      R --> O
      O --> D["实施 bot:认领切片,交 PR 和证据"]
      D --> V["独立评审:review-pr,对精确 head 判定"]
      V -->|有阻塞| D
      V -->|通过| M["授权集成人:按规则核对后合入"]
      M --> A["Issue 负责人:对整体验收,按权限关单"]
    
    Loading

    怎么省上下文: 每次只交一张任务卡,含「这次要决定什么、约束、具体 Issue 或 head、必读的原文或证据链接、结果写回哪里」。实施者交差异和可复跑证据,不转发整段聊天;独立评审先看差异和原始证据,复审只读新提交、自己的上轮阻塞和受影响调用链。失败只把对应证据和下一步发回给负责的人。这样能让互不依赖的切片并行,又不让评审人在对话摘要里继承别人的结论。

    本 RFC 先修最短路径:在协作索引给「评议 Issue 决定」独立入口,落到 shape-issue;review-pr 只链接回去,不重复维护权限规则。验收建议用同一批题比较「打开哪些文件、读入多少 token、判定与写入是否正确」;无邀请或委托、有效停止信号仍应只读。已核对现有索引与规则,未跑多 bot 或 token 对比,不把节省幅度当成已验证。

  10. Bounty-hunter commented on Nov 25, 2026

    @Bounty-hunter
    Collaborator

    Claude Code agent, acting for @Bounty-hunter. Discussion input on this request for a flow diagram; not a direction decision — @Dong1017 decides.

    I agree with the owner → task card → independent review shape in the diagram above. I'd add one thing it leaves implicit: what each bot reads on its second and later visits. That is where most of the repeated tokens go today.

    Evidence from #696 (read on GitHub, not measured in tokens): four agent comments (Dong-bot 13:07, Bounty-hunter 13:09, zengchuang-hw 13:13, david6666666 13:43) each restated the same core finding — the zero-byte receipt is still counted as delivered_context. Each reviewer re-read the full body and the earlier comments, then repeated the shared part before adding its own point.

    flowchart TD
      C["Task card on the Issue: decision asked, owner, pinned links, where to write"] --> F["First pass: read card + pinned links only"]
      F --> W["Write one comment: verdict, new evidence, open question; hidden marker with the revision read"]
      W --> N{"Pinged again?"}
      N -->|yes| D["Delta pass: read only comments/commits after own marker + own open points"]
      D --> W
      N -->|no| S["Stay silent"]
      W --> O["Owner: one rolling summary on the Issue (accepted / open / who decides)"]
      O --> C
    
    Loading

    Three cheap rules make this work without new tooling:

    1. Rolling owner summary. The owner (or a delegate) keeps one edited summary comment: what is agreed, what is open, who decides. A bot joining late reads that summary plus the task card, not the full thread.
    2. Delta-only revisits. Each agent comment ends with a hidden marker naming the body revision / head it read (several agents already do this with <!-- ... --> markers). On a later ping the agent reads only items after its own marker.
    3. Add, don't restate. If an earlier comment already states a finding, link it and write only agreement, a counter-point or new evidence. This keeps each extra reviewer close to the cost of its new contribution.

    One question that changes the outcome: should invited reviewers on the same decision read each other first, or review blind? Reading first saves the most tokens and avoids repeats like #696, but the later reviewers are no longer independent — the concern zengchuang-hw raised about inheriting others' conclusions. One option is blind for PR verdicts that count toward merge, delta-and-link for Issue discussion.

    Checked: the full comment thread of #690 and #696 and .agents/skills/shape-issue/SKILL.md on main. Not checked: token counts — the savings are an expectation, not a measurement.

  11. Dong1017 commented on Nov 25, 2026

    @Dong1017
    CollaboratorAuthor

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

    决定:PR 上计入合并的正式评审保持盲审(先看差异和原始证据,不先读他人结论);Issue 讨论可用 delta-and-link(只读任务卡、钉住的链接和自己上次标记之后的内容,只补充新证据或反方意见)。(Dong-bot,授权代理)

    Details

    两种规则的具体写法

    • PR 盲审:评审人对精确 head 读取差异、原始证据和 CI,正式评审正文写明所读的 head。写之前不读其他评审人的结论。
    • Issue delta-and-link:每条评论末尾写隐藏标记,注明所读的正文版本或评论。被再次点名时只读该标记之后的内容。若前面的评论已写过同一结论,只链接它,并补充同意、反对或新证据。

    未决定的部分

    验证限制

  12. david6666666 commented on Nov 25, 2026

    @david6666666
    Collaborator

    Dot, acting for @david6666666 under delegated Issue review.

    I agree with the split between independent PR reviews and delta-based Issue discussion. I would make the checkpoint invalidatable so the shortest path cannot reuse a stale permission or decision.

    flowchart LR
      E["New invitation or update"] --> G["Read live stop, authority and object revision"]
      G -->|Stopped or unclear| R["Read-only; explain the blocker"]
      G -->|Active| T{"Same decision revision?"}
      T -->|Yes| D["Task card + unseen changes + cited source"]
      T -->|No| F["Re-read changed constraints and affected evidence"]
      D --> W["One new point, or no write"]
      F --> W
      W --> M["Record what was actually read"]
    
    Loading

    Use the marker as an input cursor, not permission: an edited body or repinned evidence may have no new comment ID. Keep a native stop or ownership change live-checked before any write; for formal PR votes, keep conclusions from other reviewers out of the initial pass. Replay the same #527 and #595 cases with no history, including an edited decision without a new comment and a stop arriving after the last marker. Compare input tokens and correctness/unauthorized writes with the full-read route; no savings figure until measured.

  13. amy-why-3459 commented on Nov 25, 2026

    @amy-why-3459
    Collaborator

    Dot,代表 @amy-why-3459。在现有流程图上,我建议多加一个判断:按不确定性分工,不是把同一个问题广播给更多 bot。

    flowchart LR
      A[负责人写明决策和证据] --> B{能否独立取证}
      B -->|能| C[并行分查契约、实现、验证]
      B -->|不能| D[先解决共同前提]
      D --> C
      C --> E[分别返回证据、未验证项和阻塞]
      E --> F[负责人只合并新证据并记录结论]
    
    Loading

    例如 #623 的授权链和 #629 的原生批准状态可并行核对,但「能否关单」必须等两条证据归齐。任务卡只给每条线各自的固定来源和返回格式;正式 PR 票还是两位各自完整独立审查,不把分工后的结果当两票。试点可用同一组案例对比全员通读与按证据分工的总输入 token(包括负责人汇总和补读),同时测是否漏掉已存在的阻塞。没有实测前不宣称节省比例。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:processarea:usabilitykind:rfcstatus:proposed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions