-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When pdd fix (agentic mode) modifies a .prompt file to fix an issue, it does not subsequently regenerate the code from that updated prompt. This violates PDD's core principle that prompts are the source of truth and code is a regenerable artifact.
Steps to Reproduce
- Run
pdd fix https://github.com/promptdriven/pdd/issues/350 - Observe that
pdd/prompts/agentic_bug_step10_pr_LLM.promptis modified - Note that the corresponding code file is not regenerated from the updated prompt
Expected Behavior
After modifying a prompt file, pdd fix should:
- Detect that the prompt changed
- Run
pdd generate(or equivalent) to regenerate the code from the updated prompt - Re-run tests to verify the regenerated code works correctly
Actual Behavior
The prompt file is modified but the code file remains unchanged. The fix is incomplete because only half of the prompt→code relationship is updated.
Context
This occurred in the same session as issue #355, where pdd fix also failed to report the file changes. The prompt agentic_bug_step10_pr_LLM.prompt was modified to remove references to a non-existent log file parameter, but no code regeneration followed.
Impact
- Prompt and code become out of sync
- The fix may appear complete (tests pass) but the generated code doesn't reflect the prompt changes
- Future
pdd generateruns could produce different results, causing confusion
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working