Repository navigation
fix(#1551): require terminal-state coverage for wait/poll loops - #1553
fullsend-ai-coder[bot] wants to merge 2 commits into
Conversation
Add an explicit runtime-mechanism checklist item to the correctness sub-agent so reviewers enumerate every status a wait/poll loop over child-process, subprocess, or sub-agent status can observe, and confirm each has a handling path. The existing "check failure paths" bullet only asked whether a component failure is handled. That missed the class of bug seen on PR #1542: a completed-empty child treated as still-running, so it never closed and never received a failure fallback. Five review rounds did not catch it. The item lives in skills/pr-review/sub-agents/correctness.md (the definition included in the correctness spawn prompt), not in the orchestrator SKILL.md. The orchestrator does not evaluate code, and SKILL.md is already over the skillsaw context-budget ceiling. Note: pre-commit run could not fetch hook repos (git HTTP 403). Equivalent hooks were run directly and passed. make lint failed because uvx is not on PATH; uv tool run --from skillsaw==0.18.0 skillsaw --strict passed. No targeted unit tests exist for this markdown-only skill change. Closes #1551
|
🤖 Review · Commit: |
|
🤖 Finished Review · ✅ Success · Started 2:30 PM UTC · Completed 2:43 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $2.78 |
|
Risk Assessment: low (1/5) DetailsThis is a 1-file, 10-line docs-only edit to a review sub-agent skill file by a bot author addressing a narrowly scoped follow-up issue with no risk labels, no security-sensitive or dependency changes, and low git churn, with the single elevating signal being that the file sits in a protected path and has moderate multi-author/fix-commit history, keeping the composite just under 2 and rounding down to a low (1) risk score. |
ReviewFindingsMedium
Previous runReviewFindingsMedium
Low
Next steps:
|
|
🤖 Finished Fix · ✅ Success · Started 2:45 PM UTC · Completed 2:51 PM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $0.77 |
…-agent Address review feedback on PR #1553: mark the status list as illustrative ("e.g.") instead of a closed set, separate the non-terminal `running` status from terminal outcomes, and generalize the hang consequence to "the wait never terminates" instead of the dispatch-specific child-close wording, treating the close/failure-fallback check as conditional on that mechanism existing. Addresses #1553
🔧 Fix agent — iteration 1 (bot-triggered)Fixed the incomplete-spec finding by clarifying the terminal-state checklist item in correctness.md (illustrative example marker, non-terminal vs terminal split, generalized hang wording). Left the protected-path finding for human approval as designed. Inspected project CI: lint (skillsaw --strict) and script-test's core suites pass; the Functional Tests roll-up failure and harness-jira-test.sh failures are unrelated to this markdown-only diff (CI workflow gating race and a missing Fixed (1):
Disagreed (1):
Tests: passed CI inspections (9):
Decision points
Next steps:
|
|
🤖 Finished Review · ✅ Success · Started 2:53 PM UTC · Completed 3:03 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $1.90 |
Superseded by updated review
|
This pull request has been automatically marked as stale because it has not had any activity in the last month. It will be closed in 2 weeks if no further activity occurs. Remove the |
|
This pull request has been closed due to inactivity. Feel free to reopen it if the changes are still needed. |
Summary
Add an explicit correctness-review checklist item for wait/poll loops over child-process, subprocess, or sub-agent status.
The correctness sub-agent's runtime-mechanism checklist already asked reviewers to trace producer/consumer contracts and check whether a component failure is handled. That was not enough: on PR #1542, a completed-empty child was treated as still-running, so it could never close and never received its failure fallback. Five review rounds missed it.
The new item requires the reviewer to enumerate every status the loop can observe (running, errored, shutdown/killed, not-found, timed-out, completed-with-result, completed-empty) and confirm each has a defined handling path, rather than stopping at the happy-path / nonempty-result case.
The change is in
skills/pr-review/sub-agents/correctness.md(included verbatim in the correctness spawn prompt). It is not in the orchestratorSKILL.md: the orchestrator does not evaluate code, and that file is already over the skillsaw context-budget ceiling.This is complementary to #768 (missing poll loops). This item covers poll loops whose terminal-state enumeration is incomplete.
Testing
scan-secretson the changed file: passedpre-commit runitself could not fetch hook repos (git HTTP 403).uv tool run --from skillsaw==0.18.0 skillsaw --strict: passed (0 errors, 0 warnings).make lintcould not run becauseuvxis not on PATH in this sandbox.Closes #1551
Post-script verification
agent/1551-poll-loop-terminal-states)513b6e41444d36b8bdd6a9cee7b84c8f447bd433..HEAD)