Close Criteria
Choose Close when any of these conditions exist:
Critical Gap Examples:
- Security vulnerabilities or credential exposure
- Broken core functionality preventing deployment
- Data corruption or loss potential
- Architectural violations requiring structural changes
- Breaking changes without migration path
Decision Matrix
When to Close vs. Refine
Closing Process
1
Document critical gaps
For each critical gap, document:
- Location - File path and line numbers
- Issue - What is fundamentally wrong
- Impact - Why it blocks merge
- Root cause - Why the generation failed
2
Identify root cause
Determine why the generation failed:
- Unclear prompt - Requirements not specific enough
- Missing context - Insufficient codebase information
- Wrong approach - AAP needed different strategy
- Specification issues - Project guide incomplete or ambiguous
3
Close PR with explanation
Post a clear explanation in the PR:
- State the Close decision
- List critical gaps
- Explain why regeneration is preferred
- Provide next steps
4
Refine your prompt
Before creating a new request:
- Update prompt with clearer requirements
- Add missing context or constraints
- Reference specific patterns to follow
- Address root causes identified in review
After Closing
- PR closed - Generated code discarded
- Refine prompt - Improve specifications based on learnings
- Create new request - Submit refined prompt to Blitzy
- New AAP generated - Fresh plan based on improved prompt
- New PR created - Better code generated from improved specifications
Related Guides
Merge Pull Request
Criteria for accepting generated code
Refine Pull Request
When to iterate on the current PR
Prompt Engineering
Improve prompts to reduce failures