Commit 0c681c3
feat(agents): pm-dispatch 持续分诊职责 + 过时前提核查 + 进程纪律 (#4591)
* feat(agents): pm-dispatch backlog sweep duty + stale-premise triage checks + PID-only process discipline
- Step 0: classifying the unlabeled backlog is a standing PM duty —
auto-queue concrete/no-risk work, flag design cards and programs for
the maintainer, request repair for sanitizer-truncated bodies.
- Fetch step now requires reading issue comments and running a
stale-premise check against recent main history before dispatch
(three same-day cases: #4525, #4379, #4075 step 1).
- os-dev resource discipline: never kill by process name; PID-scoped
operations only (from the #3182 agent's pkill disclosure).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
* feat(agents): pm-dispatch cross-shard transfer protocol — work crosses shards via the target queue, PMs never do
A sharded PM whose task needs a change in another shard's repo files it
into the target repo's queue (pm:queue + source line) instead of
dispatching across the line; dependencies via Blocked-by, follow-up
chores belong to the consuming shard, and anything touching
packages/spec transfers to the main-backlog PM. The queue label is the
inter-PM channel — no direct PM-to-PM coordination needed.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
* feat(agents): pm-dispatch shard ownership registry — caretaker mode is explicit, never assumed
A registry issue in the main backlog records which session owns which
shard; taking over or handing off a shard is a comment there. Unowned
shards may be caretaken by the main-backlog PM, but a registered shard
ends caretaking immediately — in-flight claimed tasks finish under their
claimant, everything else belongs to the new owner. Claim comments state
the mode so registry and claims never disagree silently.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012C2cd7tL8QDoZ2QKN3djJ5
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2382580 commit 0c681c3
3 files changed
Lines changed: 78 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
121 | 156 | | |
122 | 157 | | |
123 | 158 | | |
| |||
126 | 161 | | |
127 | 162 | | |
128 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
129 | 182 | | |
130 | 183 | | |
131 | 184 | | |
132 | 185 | | |
133 | 186 | | |
134 | | - | |
135 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
136 | 201 | | |
137 | 202 | | |
138 | 203 | | |
| |||
0 commit comments