Draft
Conversation
…plate env_vars Unit tests (test_code_generator_main.py) and E2E test verify that EXAMPLE_OUTPUT_PATH from resolved_config is never substituted in the prompt template, causing the LLM to emit raw source code paths instead of _example.py file paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds failing tests that detect the bug reported in #687 —
code_generator_main.pynever injectsexample_output_pathfromresolved_configinto templateenv_vars, causing the LLM to emit raw source code paths instead of_example.pyfile paths.Test Files
tests/test_code_generator_main.py(5 new tests added)tests/test_e2e_issue_687_example_output_path.pyWhat This PR Contains
code_generator_main → construct_paths → _expand_varspipelineRoot Cause
code_generator_main.pyresolvesexample_output_pathfrom the config viaconstruct_paths()but never injects it intoenv_varsfor template variable substitution. When.pddrcis missing, the LLM has no way to discover example file paths and falls back to emitting raw source code paths likesrc/core/storage_layer.py.Next Steps
code_generator_main.py— injectEXAMPLE_OUTPUT_PATHintoenv_varsFixes #687
Generated by PDD agentic bug workflow