2026-06-23 · pull-request-review

Agent to agent 回复 PR comment 和 PR Fix

多 agent 可围绕 PR review 协同发现、评论、修复。

The operator can let agents coordinate around PR comments without losing final review visibility or fix evidence.

handoffPR commentclaimed_by
LoopX Agent to agent 回复 PR c claimed_by public safe pattern case goal / trigger todo / gate / evidence public outcome
01

案例背景

这个案例描述的是 PR review feedback 在多 agent 之间流转时如何不丢 ownership。重点不是聊天记录,而是 comment、claim、handoff、fix、validation、review packet 这条链。

对用户有价值的是每条反馈都能回答三个问题:谁负责、修复证据在哪里、还需要谁 review。公开仓库里的 event contract、review packet、heartbeat prompt 和 validation fixtures 共同证明这条 handoff 链。

02

仓库证据

证明点

多 agent lane 可以围绕 PR comment 协作,同时保留 owner review。

LoopX 介入

claimed_by、handoff gate、review packet、comment/fix loop

1每条反馈一个 owner
3owner/fix/review 可回答问题
1review packet handoff
0无主 PR comment reminder
todo ownership

`event_sourced_state_contract_v0` 把 `todo_claimed` 定义为 canonical event,记录 ownership、lease 或 `claimed_by`。

review packet

`loopx/review_packet.py` 在 open-todo rendering 和 handoff ranking 路径中保留 `claimed_by`,让 review packet 能显示 owner。

side-agent contract

`docs/heartbeat-automation-prompt.md` 规定 side-agent 小变更可带 evidence 自合并,否则创建 claimed-by handoff todo。

CLI smokes

`examples/todo-lifecycle-cli-smoke.py` 和 `examples/todo-cli-smoke.py` 覆盖 claim、handoff successor、side-agent self-merge、review handoff 和 same-agent handoff rejection。

03

LoopX 行为

04

用户看到什么

用户不必手动 shepherd 每条 PR comment;控制面会显示谁 claim 了反馈、修复证据在哪里、还有什么需要 review。

多 agent 协作不会变成“谁看过这条评论”的记忆题。

05

仓库来源

证据边界. Public-safe pattern case only; no private screenshots, raw chats, internal review notes, local state, credentials, or unpublished artifacts.