Why: Q2 acceptance requires leader runs to detect stuck delegation loops and
cap replans instead of spinning to the turn limit, and a mailbox primitive
whose messages can never resolve a pending permission approval (acceptance 3).
Evidence: squad conformance tests (leader_mailbox_conformance_test.go):
ledger stuck->replan, replan cap finalize, mailbox delivery after hold,
mailbox-cannot-approve-permission (structural + actor second defense),
post guards; full suite green with -race.
Impact: LeaderState gains Progress/StuckTurns/Replans/MaxReplans/ReplanNote
(persisted in leader.json); RunState gains Mailbox (persisted in
runstate.json); RespondDecision gains Actor - non-human actors are rejected
on choice gates; step briefs and leader task briefs include pending mail.
Refs: Q2 plan WP2 (2026-10-07-agent-stack-q2q3-plans.md); task card
.task/feature-agent-stack-q2.md
weichen
merged commit 01d5b96cda into main2026-10-08 00:36:38 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
Q2 WP2(拓扑库):leader 拓扑需要进度账本 + 重规划上限(验收一 leader 项),mailbox 拓扑需要运行内消息原语,且验收三要求「mailbox 消息不能把挂起的权限批准掉」。
What
PostMessage运行内点对点/广播消息(run 锁保护,执行中 ErrRunBusy,挂起与回合间隙可投递);随 RunState 持久化(diskRunState.mailbox);步骤/leader 任务书启动时取走并入「## 邮箱消息」段,只投递一次。Evidence
GOWORK=off go test ./... -count=1+-race绿(SELF);CI 为权威(GATE)Refs