-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Bug Description
The pdd change command fails at Step 5 (Analyze documentation changes needed) with the error:
Context missing key for step 5: '"url"'
Steps to Reproduce
-
Run
pdd changeagainst an issue:pdd change https://github.com/promptdriven/pdd/issues/389
-
Observe the workflow progress through Steps 1-4 successfully, then fail at Step 5.
Expected Behavior
The pdd change workflow should complete all 13 steps successfully, or at minimum, the context should contain all required keys for each step.
Actual Behavior
The workflow fails at Step 5 with a KeyError-style message indicating the url key is missing from the context dictionary:
[Step 5/13] Analyze documentation changes needed...
Successfully loaded prompt: agentic_change_step5_docs_change_LLM
Status: Failed
Message: Context missing key for step 5: '"url"'
Environment
- PDD CLI (pdd-cap development version)
- Date: 2026-01-25
- Platform: Linux
Debug Information
A debug snapshot was saved at:
.pdd/core_dumps/pdd-core-20260125T200051Z.json
Analysis
It appears that the context dictionary being passed between steps in the Agentic Change Orchestrator is not being properly populated with the url key that Step 5 expects. This could be:
- A missing context propagation from an earlier step
- A key naming mismatch (e.g.,
issue_urlvsurl) - A regression from recent changes to the orchestrator
Cost Impact
This bug caused $2.92 in API costs before failing, which is significant for users encountering this issue repeatedly.
Logs
Full execution log
[james@devk3-4 pdd_cap]$ pdd change https://github.com/promptdriven/pdd/issues/389
2026-01-25 11:54:00,369 - pdd.llm_invoke - INFO - No local LLM model CSV found, will use package default
2026-01-25 11:54:00,388 - pdd.llm_invoke - INFO - LiteLLM disk cache configured at /home/james/pdd-cap-fixes/pdd_cap/litellm_cache.sqlite
Checking for updates...
Fetching issue #389 from promptdriven/pdd...
Using current directory as repository: /home/james/pdd-cap-fixes/pdd_cap
Starting Agentic Change Orchestrator...
Implementing change for issue #389: "Feature Request: Grounding-Aware Prompt Generation and Update"
[Step 1/13] Search for duplicate issues...
Successfully loaded prompt: agentic_change_step1_duplicate_LLM
-> The workflow can now proceed to Step 2: Documentation Check.
[Step 2/13] Check if already implemented...
Successfully loaded prompt: agentic_change_step2_docs_LLM
-> The workflow should **continue to Step 3: Identify Dev Units** since this fea...
[Step 3/13] Research to clarify specifications...
Successfully loaded prompt: agentic_change_step3_research_LLM
-> The workflow can now proceed to Step 4: Documentation Changes.
[Step 4/13] Verify requirements are clear...
Successfully loaded prompt: agentic_change_step4_clarify_LLM
-> The workflow can now proceed to **Step 5: Documentation Changes**.
[Step 5/13] Analyze documentation changes needed...
Successfully loaded prompt: agentic_change_step5_docs_change_LLM
Status: Failed
Message: Context missing key for step 5: '"url"'
Cost: $2.9238
Model: anthropic
--- Command Execution Summary ---
Step 1 (change): Cost: $2.923783, Model: anthropic
Total Estimated Cost: $2.923783
-------------------------------------
📦 Debug snapshot saved to /home/james/pdd-cap-fixes/pdd_cap/.pdd/core_dumps/pdd-core-20260125T200051Z.json (attach when reporting bugs)