Skip to content

pdd bug command fails silently at step 5.5 and cannot resume properlyΒ #393

@jamesdlevine

Description

@jamesdlevine

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

  1. Run pdd bug https://github.com/promptdriven/pdd/issues/392
  2. Workflow proceeds through steps 1-5 successfully
  3. Step 5.5 loads the prompt but then crashes silently (no error message shown)
  4. Retry the same command
  5. 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

  1. Step 5.5 should either complete successfully or show an error message explaining why it failed
  2. On retry, if resuming from step 6 is claimed, step 5.5 should not re-run
  3. 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

  1. Silent failure: No error message is displayed when step 5.5 fails - it just shows the cost summary and debug snapshot
  2. 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
  3. 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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions