-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
pdd bug fails silently at step 5.5 (defect classification) and when retried, claims to resume from step 6 but still re-runs step 5.5 and fails again.
Steps to Reproduce
- Run
pdd bug https://github.com/promptdriven/pdd/issues/392 - Workflow proceeds through steps 1-5 successfully
- Step 5.5 loads the prompt but then crashes silently (no error message shown)
- Retry the same command
- System says "Resuming from step 6 (steps 1-5 cached)" but still runs step 5.5 and fails again
Observed Behavior
First run:
[Step 5/11] Analyzing root cause...
Successfully loaded prompt: agentic_bug_step5_root_cause_LLM
β Step 5 complete.
Working in worktree: /home/james/pdd-cap-fixes/pdd_cap/.pdd/worktrees/fix-issue-392
[Step 5.5/11] Classifying defect: code bug vs prompt defect...
Successfully loaded prompt: agentic_bug_step5_5_prompt_classification_LLM
--- Command Execution Summary ---
Step 1 (bug): Cost: $5.784260, Model: anthropic
Total Estimated Cost: $5.784260
-------------------------------------
π¦ Debug snapshot saved to /home/james/pdd-cap-fixes/pdd_cap/.pdd/core_dumps/pdd-core-20260125T213811Z.json
Second run (retry):
Resuming from step 6 (steps 1-5 cached)
Removing existing worktree at /home/james/pdd-cap-fixes/pdd_cap/.pdd/worktrees/fix-issue-392
Removing existing branch fix/issue-392
Working in worktree: /home/james/pdd-cap-fixes/pdd_cap/.pdd/worktrees/fix-issue-392
[Step 5.5/11] Classifying defect: code bug vs prompt defect...
Successfully loaded prompt: agentic_bug_step5_5_prompt_classification_LLM
--- Command Execution Summary ---
Step 1 (bug): Cost: $5.784260, Model: anthropic
Total Estimated Cost: $5.784260
-------------------------------------
π¦ Debug snapshot saved to /home/james/pdd-cap-fixes/pdd_cap/.pdd/core_dumps/pdd-core-20260125T215924Z.json
Expected Behavior
- Step 5.5 should either complete successfully or show an error message explaining why it failed
- On retry, if resuming from step 6 is claimed, step 5.5 should not re-run
- The resume logic should correctly handle the case where step 5.5 failed (step 5.5 appears to not be cached properly as a half-step)
Issues Identified
- Silent failure: No error message is displayed when step 5.5 fails - it just shows the cost summary and debug snapshot
- Resume logic mismatch: System says "Resuming from step 6" but actually re-runs step 5.5, suggesting the caching/resume logic doesn't properly handle the half-step (5.5) numbering
- Worktree cleanup on retry: The worktree and branch are removed on retry which may lose progress
Environment
- pdd version: latest from pip/uv
- OS: Linux
- Debug snapshots available at paths shown above
Debug Snapshots
Core dumps were saved that may help diagnose:
/home/james/pdd-cap-fixes/pdd_cap/.pdd/core_dumps/pdd-core-20260125T213811Z.json/home/james/pdd-cap-fixes/pdd_cap/.pdd/core_dumps/pdd-core-20260125T215924Z.json
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working