Commit 61e2c7c
fix(code-review): attribute run-prefix stage-failure diagnostics per stage
Addresses review of PR #173 (all MEDIUM, non-blocking):
- Capture each in-process stage's stderr and fold its tail into the returned
status message, so a failing stage's own diagnostic is attributed to that
stage now that one process spans many stages (was: bare process stderr with
no stage attribution). Written back to the real stderr so live visibility is
unchanged.
- Thread that diagnostic into _emit_prefix_stage_failure_finding: the
continue_with_coverage_gap agent-failure finding now carries the actual
rc/exception/stderr in its explanation instead of a generic string.
- Log the full traceback on an unexpected stage crash (the broad except no
longer discards it), so a Phase-1 crash is diagnosable without reproduction.
- SCHEMA.md §7b: document that ready_for_route with resume_stage=null means the
walk completed with no partition stage (skip Gate B), distinct from the
normal partition boundary.
The docstring subparser-count finding was already correct (46). Adds a
regression test asserting the stderr diagnostic reaches the finding explanation.
Full code-review suite 1300 passed / 3 skipped; ruff + pyright clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent ad2293b commit 61e2c7c
4 files changed
Lines changed: 76 additions & 16 deletions
File tree
- plugins/code-review
- tools/python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
528 | 535 | | |
529 | 536 | | |
530 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
10566 | 10567 | | |
10567 | 10568 | | |
10568 | 10569 | | |
10569 | | - | |
| 10570 | + | |
| 10571 | + | |
| 10572 | + | |
10570 | 10573 | | |
10571 | 10574 | | |
10572 | 10575 | | |
10573 | 10576 | | |
10574 | 10577 | | |
10575 | | - | |
10576 | | - | |
| 10578 | + | |
| 10579 | + | |
| 10580 | + | |
| 10581 | + | |
| 10582 | + | |
| 10583 | + | |
| 10584 | + | |
| 10585 | + | |
| 10586 | + | |
| 10587 | + | |
| 10588 | + | |
| 10589 | + | |
| 10590 | + | |
10577 | 10591 | | |
10578 | 10592 | | |
10579 | 10593 | | |
| |||
10584 | 10598 | | |
10585 | 10599 | | |
10586 | 10600 | | |
10587 | | - | |
10588 | | - | |
10589 | | - | |
10590 | | - | |
10591 | | - | |
10592 | | - | |
| 10601 | + | |
10593 | 10602 | | |
10594 | 10603 | | |
10595 | 10604 | | |
| |||
10650 | 10659 | | |
10651 | 10660 | | |
10652 | 10661 | | |
| 10662 | + | |
| 10663 | + | |
| 10664 | + | |
| 10665 | + | |
| 10666 | + | |
| 10667 | + | |
10653 | 10668 | | |
10654 | | - | |
10655 | | - | |
10656 | | - | |
10657 | | - | |
10658 | | - | |
10659 | | - | |
| 10669 | + | |
| 10670 | + | |
| 10671 | + | |
| 10672 | + | |
| 10673 | + | |
| 10674 | + | |
| 10675 | + | |
10660 | 10676 | | |
10661 | 10677 | | |
10662 | 10678 | | |
10663 | 10679 | | |
10664 | 10680 | | |
10665 | 10681 | | |
| 10682 | + | |
| 10683 | + | |
| 10684 | + | |
| 10685 | + | |
| 10686 | + | |
| 10687 | + | |
| 10688 | + | |
10666 | 10689 | | |
10667 | 10690 | | |
10668 | 10691 | | |
10669 | 10692 | | |
10670 | 10693 | | |
| 10694 | + | |
| 10695 | + | |
| 10696 | + | |
10671 | 10697 | | |
10672 | 10698 | | |
10673 | 10699 | | |
10674 | | - | |
| 10700 | + | |
10675 | 10701 | | |
10676 | 10702 | | |
10677 | 10703 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22608 | 22608 | | |
22609 | 22609 | | |
22610 | 22610 | | |
| 22611 | + | |
| 22612 | + | |
| 22613 | + | |
| 22614 | + | |
| 22615 | + | |
| 22616 | + | |
| 22617 | + | |
| 22618 | + | |
| 22619 | + | |
| 22620 | + | |
| 22621 | + | |
| 22622 | + | |
| 22623 | + | |
| 22624 | + | |
| 22625 | + | |
| 22626 | + | |
| 22627 | + | |
| 22628 | + | |
| 22629 | + | |
| 22630 | + | |
| 22631 | + | |
| 22632 | + | |
| 22633 | + | |
| 22634 | + | |
| 22635 | + | |
| 22636 | + | |
22611 | 22637 | | |
22612 | 22638 | | |
22613 | 22639 | | |
| |||
0 commit comments