Problems
pdd bug Step 9 always runs and creates E2E test files, even if the bug may not warrant an E2E test. The unit test from Step 7 might already provide full coverage for simple internal bugs, but Step 9 would still run and create a new test file that adds no value.
pdd bug Step 6's prompt presents two options to the LLM: append to an existing test file (append) or create a new test file (new). However, in practice, the agent almost always picks (new) because the prompt portrays them as equally valid options, and the example reinforces (new) as the safer choice.
Both of these problems can cause the /tests directory to grow unnecessarily by adding many small issue-specific files.
Proposed fixes
- Before step 9, add a classification check: "Is there a user-facing behavior not already covered by the unit test?" Only proceed to E2E generation if yes.
- Adjust step 6's prompt to specify that appending to the nearest existing test file is the preferred default. The agent should only create a new file when no relevant test file exists. Also, update the example in the prompt to reflect this.
Problems
pdd bugStep 9 always runs and creates E2E test files, even if the bug may not warrant an E2E test. The unit test from Step 7 might already provide full coverage for simple internal bugs, but Step 9 would still run and create a new test file that adds no value.pdd bugStep 6's prompt presents two options to the LLM: append to an existing test file (append) or create a new test file (new). However, in practice, the agent almost always picks (new) because the prompt portrays them as equally valid options, and the example reinforces (new) as the safer choice.Both of these problems can cause the
/testsdirectory to grow unnecessarily by adding many small issue-specific files.Proposed fixes