feat: bind workflow guidance to plan system prompt with structured field specs #28
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.
🎯 Overview
This PR enhances the workflow guidance system to expose comprehensive structured guidance to the plan system prompt, enabling AI coding assistants to receive detailed field specifications, conditional requirements, and preparation instructions.
🚀 Key Changes
Enhanced Workflow Guidance Extraction
Plan System Prompt Improvements
Structured Guidance Exposure
The plan system prompt now receives:
Example Enhanced Guidance Format
🧪 Testing
�� Documentation
🎁 Benefits
For AI Coding Assistants
For the System
🔒 Security Considerations
The plan system prompt already includes comprehensive security aspects:
📋 Files Changed
src/mcp_as_a_judge/server.py: Enhanced guidance extraction and formattingsrc/mcp_as_a_judge/prompts/system/judge_coding_plan.md: Improved evaluation protocoltests/test_workflow_guidance_exposure.py: Comprehensive test coverageexamples/workflow_guidance_exposure_demo.md: Documentation and examples✅ Quality Assurance
🔄 Migration Notes
This is a non-breaking enhancement. Existing workflows will continue to function normally, with the added benefit of more detailed guidance when available.
🎯 Related Issues
Addresses the need for better AI coding assistant preparation by exposing structured workflow guidance to the plan system prompt, significantly improving plan validation success rates.