Skip to content

chore(skills): retry the plan-revise agent once before losing its findings - #615

Merged
BorisTyshkevich merged 1 commit into
mainfrom
chore/ship-plan-revise-retry
Aug 5, 2026
Merged

chore(skills): retry the plan-revise agent once before losing its findings#615
BorisTyshkevich merged 1 commit into
mainfrom
chore/ship-plan-revise-retry

Conversation

@BorisTyshkevich

Copy link
Copy Markdown
Collaborator

What & why

plan-review-loop.workflow.mjs's revise-after-pass step never checked its agent()
call's return value — unlike the review-runner step, which already returns
status:'error' if the agent dies. Found live during /ship 590 (2026-08-05): that
agent died twice on a transient API Error: 529 Overloaded, and the loop silently
advanced to the next review pass on a plan file that could be left
partially/inconsistently edited, with that pass's accepted findings never confirmed
folded in. In the observed case a later pass happened to independently re-surface the
same gap, so nothing was actually lost — but that's luck, not a guarantee.

Adds the same death-check pattern the review-runner step already has: on death, retry
once with an explicit instruction to re-read the whole plan file and reconcile any
partial prior edit before folding in the findings; if it dies twice, return
status:'error' instead of silently continuing on an unknown plan state.

Rebased onto current main (this file was untouched by #614's ChatGPT-planner work,
which lives in separate new files).

Checklist

  • N/A — skill infrastructure script, no src//tests/ change, no coverage impact
  • No new runtime dependency

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwFPT465eDJqYcRa8HGNLz

…dings

The revise-after-pass step's agent() call never checked its return value: if
that agent died mid-edit (observed live during /ship 590, a transient 529
Overloaded error), the loop silently continued to the next review pass on a
plan file that could be partially/inconsistently edited, with that pass's
accepted findings never folded in. Add the same death-check the review-runner
step already has, retry once with an explicit instruction to reconcile any
partial prior edit, and return status:'error' if it dies twice.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwFPT465eDJqYcRa8HGNLz
@BorisTyshkevich
BorisTyshkevich merged commit 843c766 into main Aug 5, 2026
8 checks passed
@BorisTyshkevich
BorisTyshkevich deleted the chore/ship-plan-revise-retry branch August 6, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant