Commit a3e6553
authored
fix: make Stage 2 publish by command, and fail the job when it doesn't (#649)
Stage 2 (issue-analyze.yml) exited `success` while posting nothing on
five of nine non-skipped runs over three days, billing $0.33-1.58 each.
Every signal said the run was healthy: green job, is_error false,
permission_denials_count 0. The `ready-for-analysis` label staying put
is indistinguishable from "nobody has run analyze yet", so the backlog
pass could not see it either. On #593 the maintainer eventually wrote
the diagnosis by hand -- the stage was paid for and the work done twice.
The prompt never told the agent to RUN anything to publish. Step 4 read
"Post ONE comment on the issue with this structure:" followed by a
markdown template -- a description of a document, not an instruction to
execute a command. These workflows run in agent mode
(use_sticky_comment false, track_progress false), so the action posts
nothing on the agent's behalf and creates no tracking comment. An agent
that renders the template as its final assistant message has, by its own
lights, finished; it then never reaches the labelling step, which is why
the label was untouched too.
The contrast is what identifies it. On the same action version
(459ad358 / CLI 2.1.234), Stage 4 -- whose prompt names `gh pr review`
explicitly -- landed an APPROVED verdict, while Stage 2 went silent three
times within three seconds. Stage 2 was the only bot workflow whose
publish step was prose, and the only one that failed to publish.
So publishing is now a literal `gh issue comment --body-file` command on
both the conclusive and inconclusive paths, and PROCESS is renumbered
(it had two steps numbered 3, so "am I done with step 3" was satisfiable
by the wrong one).
That fix is a behavioural argument about what a model will infer, so it
is not trusted on its own: a post-agent step re-reads the issue and fails
the job when no comment was posted or neither label applied. It asserts
and deliberately does not repair -- posting on the agent's behalf would
be a second publishing path routing around the first one failing, which
masks the regression instead of surfacing it.
quality-check.sh gains a matching static gate so neither half can be
removed silently.
Closes #6461 parent 0620dd9 commit a3e6553
3 files changed
Lines changed: 208 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
109 | 116 | | |
110 | 117 | | |
111 | 118 | | |
112 | | - | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | 122 | | |
116 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
117 | 139 | | |
118 | | - | |
119 | | - | |
| 140 | + | |
| 141 | + | |
120 | 142 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 143 | + | |
| 144 | + | |
124 | 145 | | |
125 | | - | |
126 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
127 | 149 | | |
128 | | - | |
129 | | - | |
| 150 | + | |
130 | 151 | | |
131 | | - | |
132 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
133 | 155 | | |
134 | | - | |
| 156 | + | |
135 | 157 | | |
136 | 158 | | |
137 | 159 | | |
138 | 160 | | |
139 | 161 | | |
140 | | - | |
141 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
142 | 172 | | |
143 | 173 | | |
144 | 174 | | |
145 | 175 | | |
| 176 | + | |
| 177 | + | |
146 | 178 | | |
147 | 179 | | |
148 | 180 | | |
| |||
151 | 183 | | |
152 | 184 | | |
153 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
154 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
423 | 515 | | |
424 | 516 | | |
425 | 517 | | |
| |||
0 commit comments