Commit 121a325
fix(pr-reengagement): evict no-PR completed issues to stop log flood
state.completed only ever shed an issue when PrReengagement dispatched a
re-engagement, so any completed issue that never re-engages sat in the set
until orchestrator restart. PrReengagement re-scans the whole set every
poll cycle, emitting skip_no_pr / skip_no_critical per lingering issue —
~2880 events/day each, the dominant source of decision-log flood.
A completed issue with no PR url can never produce a review to re-engage
on, so this evicts it from state.completed on the no-PR branch instead of
re-scanning it forever. If it is later re-dispatched and opens a PR, the
normal completion path re-adds it.
Scoped to the no-PR case only. The skip_no_critical path (PR present, no
critical review yet) is left intact because a review can still arrive
minutes after the agent exits — the exact late-review window
PrReengagement exists to catch (SYM-16).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent d3c141d commit 121a325
2 files changed
Lines changed: 15 additions & 5 deletions
File tree
- elixir
- lib/symphony_elixir/orchestrator
- test/symphony_elixir/orchestrator
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
358 | | - | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
389 | 389 | | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
390 | 393 | | |
391 | 394 | | |
392 | 395 | | |
| |||
422 | 425 | | |
423 | 426 | | |
424 | 427 | | |
425 | | - | |
| 428 | + | |
426 | 429 | | |
427 | 430 | | |
428 | 431 | | |
| |||
451 | 454 | | |
452 | 455 | | |
453 | 456 | | |
454 | | - | |
| 457 | + | |
455 | 458 | | |
| 459 | + | |
456 | 460 | | |
457 | 461 | | |
458 | 462 | | |
| |||
0 commit comments