Phase Validation System
Table of contents
- Overview
- The Problem It Solves
- How It Works
- Visual Progress System
- Mandatory Tasks
- Validation Commands
- Override Options
- Benefits
- Configuration
- Examples
- Tips for Success
- Integration with AI Workflow
- Troubleshooting
- Future Enhancements
- Conclusion
Overview
FORGEβs phase validation system ensures proper workflow progression through the 5-phase development cycle, preventing premature completion and maintaining development discipline.
The Problem It Solves
Before phase validation, developers could:
- Skip critical steps in the development process
- Archive cycles without completing mandatory tasks
- Lose track of progress across phases
- Miss important quality checkpoints
The validation system addresses these issues while maintaining flexibility.
How It Works
Automatic Progress Tracking
FORGE analyzes your cycle markdown to:
- Parse checkbox completion status
- Identify mandatory vs optional tasks
- Calculate phase progress percentages
- Determine current active phase
Validation Rules
- Mandatory Task Enforcement
- Tasks marked as
(MANDATORY)must be completed - Phase transitions blocked until mandatory items done
- Clear identification of blocking items
- Tasks marked as
- Phase Dependencies
- Phases must be completed in order
- Canβt skip ahead without finishing current phase
- Visual indicators show phase status
- Cycle Completion
- All phases must be substantially complete
- Mandatory items across all phases checked
- Validation prevents accidental archival
Visual Progress System
Progress Indicators
FORGE provides rich visual feedback:
π Current Cycle: user authentication
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β
π― Focus [ββββββββββ] 100%
π π Orchestrate [ββββββββββ] 40%
β³ π¨ Refine [ββββββββββ] 0%
β³ π Generate [ββββββββββ] 0%
β³ π Evaluate [ββββββββββ] 0%
Status Symbols
| Symbol | Meaning | Description |
|---|---|---|
| β³ | Pending | Phase not started |
| π | Active | Phase in progress |
| β | Complete | Phase finished |
| β οΈ | Blocked | Has incomplete mandatory items |
Progress Bars
Visual representation of completion:
[ββββββββββ]- 100% complete[ββββββββββ]- 40% complete[ββββββββββ]- 0% not started
Mandatory Tasks
What Makes a Task Mandatory?
Tasks containing (MANDATORY) in their text are required:
- Test scenario definition in Focus phase
- Critical architectural decisions
- Security validations
- Production readiness checks
Example Mandatory Task
### Phase 1: Focus π― [Active]
- [ ] Gather requirements
- [ ] Define test scenarios (MANDATORY)
- [ ] Create/Update PRD in specs/
The test scenarios task blocks phase progression until completed.
Validation Commands
Check Status
forge status # Quick progress view
forge phase status # Detailed with mandatory items
Attempt Completion
forge complete # Validates before archiving
Output when validation fails:
β οΈ Cycle has incomplete phases!
Incomplete phases: Focus, Orchestrate
Mandatory tasks not completed:
π― Focus: Define test scenarios (MANDATORY)
π‘ Options:
1. Complete the remaining tasks
2. Use "forge complete --force" to archive anyway
Phase Transitions
forge phase next # Move to next phase
Blocks with helpful feedback:
β οΈ Cannot move to next phase. Current phase "Focus" has incomplete mandatory items:
β’ Define test scenarios (MANDATORY)
π‘ Complete these items or use "forge phase next --force" to skip validation
Override Options
When to Use βforce
The --force flag bypasses validation for:
- Experimental or prototype work
- Urgent hotfixes
- Special circumstances
- Learning and exploration
forge complete --force # Archive incomplete cycle
forge phase next --force # Skip phase validation
Best Practices
- Use validation by default - Let FORGE guide you
- Complete mandatory items - They exist for good reasons
- Document exceptions - Note why you used βforce
- Review incomplete cycles - Learn from shortcuts taken
Benefits
For Individual Developers
- Never forget critical steps
- Visual progress tracking
- Confidence in completeness
- Better work habits
For Teams
- Consistent quality standards
- Clear progress visibility
- Reduced review burden
- Shared understanding
For AI Assistants
- Clear completion criteria
- Structured workflow guidance
- Validation checkpoints
- Progress awareness
Configuration
Customizing Mandatory Items
Edit your cycle templates to mark critical items:
- [ ] Security review (MANDATORY)
- [ ] Performance testing (MANDATORY)
- [ ] Documentation update
Project-Specific Rules
In your CLAUDE.md:
## Validation Rules
- All features require test scenarios
- Security review mandatory for auth changes
- Performance benchmarks for API endpoints
Examples
Successful Completion Flow
# Start feature
forge new "payment processing"
# Work through Focus phase
# ... complete all mandatory items ...
# Move to next phase
forge phase next
β
Moved from Focus to Orchestrate
# Continue through all phases
# ... complete work ...
# Final completion
forge complete
β
Cycle completed successfully!
Handling Validation Failures
# Attempt completion
forge complete
β οΈ Cycle has incomplete phases!
# Check what's missing
forge phase status
# Complete missing items
# ... update cycle file ...
# Retry completion
forge complete
β
Cycle completed successfully!
Tips for Success
- Start with test scenarios - Define success before building
- Check progress regularly - Use
forge statusoften - Complete phases fully - Donβt rush ahead
- Use phase complete - Mark bulk items done
- Document learnings - Capture insights for next time
Integration with AI Workflow
AI assistants understand the validation system:
User: Let's complete this cycle
Claude: Let me check the validation status first...
[Runs forge complete]
I see there are incomplete mandatory items in the Focus phase.
We need to define test scenarios before we can archive this cycle.
Would you like me to help create those now?
Troubleshooting
Common Issues
| Issue | Cause | Solution |
|---|---|---|
| Canβt complete cycle | Incomplete phases | Check forge phase status |
| Canβt move phases | Mandatory items | Complete required tasks |
| Progress shows 0% | No checkboxes marked | Update cycle markdown |
| Validation too strict | Wrong items mandatory | Edit cycle template |
Getting Help
- Run
forge phase statusfor detailed view - Check mandatory items with β οΈ symbol
- Use
--forcetemporarily if blocked - Update templates for future cycles
Future Enhancements
Planned improvements:
- Configurable validation rules
- Custom mandatory patterns
- Phase dependencies
- Automated checkbox updates
- Integration with CI/CD
Conclusion
The phase validation system brings discipline to the development process while maintaining the flexibility developers need. It ensures quality without sacrificing agility, making FORGE a more robust framework for AI-driven development.