Use when Execute-Build is complete. Performs automated checks, functional validation, and visual regression before Owner sign-off.
Comprehensive validation of completed implementation. Runs automated checks, functional flow testing, and produces validation report for Owner sign-off.
Core principle: No deployment without validation. No validation without evidence.
delivery.md status: COMPLETED)docs/product/YYYY-MM-DD-<product>-plan.md — acceptance criteriapreview/<product>/ — visual reference for regressionRun all automated verification:
| Check | Command | Pass Criteria |
|---|---|---|
| Test Suite | bundle exec rspec | 0 failures |
| Coverage | SimpleCov output | ≥90% line coverage |
| Security | brakeman --no-pager | 0 high/critical |
| Dependencies | bundle-audit check --update | 0 vulnerabilities |
| Linting | rubocop | 0 offenses |
For each user flow in Product-Plan:
Compare rendered screens against Preview-Output mockups:
Present validation report. Owner must explicitly approve.
# 1. Full test suite
bundle exec rspec
# 2. Coverage check (from SimpleCov output)
cat coverage/.last_run.json
# Check: covered_percent >= 90
# 3. Security scan
bundle exec brakeman --no-pager
# 4. Dependency audit
bundle exec bundle-audit check --update
# 5. Linting
bundle exec rubocop
For each flow in Product-Plan:
## Flow: [Flow Name]
**Product-Plan Reference:** §[section]
### Steps
1. Navigate to [entry point]
- **Expected:** [what should appear]
- **Actual:** [what appeared]
- **Status:** PASS | FAIL
2. [Action]
- **Expected:** [result]
- **Actual:** [result]
- **Status:** PASS | FAIL
### Evidence
- Screenshot: `validation/screenshots/flow-name-step-1.png`
### Verdict: PASS | FAIL
If coverage < 90%:
| File | Coverage | Risk | Action |
|---|---|---|---|
app/services/payment.rb | 78% | HIGH | Create test task |
app/helpers/format.rb | 85% | LOW | Accept |
Why not auto-generate? Coverage < 90% indicates TDD wasn't followed. Auto-generating tests hides the process failure.
For fixable issues:
1. Run check
2. If FAIL:
a. Analyze error
b. Generate fix
c. Apply fix
d. Re-run check
e. If FAIL after 3 attempts → escalate
3. If PASS → proceed
Escalate to Owner when:
Output: docs/validation/YYYY-MM-DD-<product>-report.md
# Validation Report: [Product Name]
**Date:** YYYY-MM-DD
**Plan:** YYYY-MM-DD-HH-MM_product-name
**Status:** PASSED | FAILED | PASSED_WITH_WARNINGS
## Summary
| Category | Result |
|----------|--------|
| Tests | 142 passed, 0 failed |
| Coverage | 94.2% |
| Security | 0 issues |
| Dependencies | 0 vulnerabilities |
| Linting | 0 offenses |
| Functional Flows | 8/8 passed |
## Automated Checks
### Test Suite
142 examples, 0 failures Finished in 12.34 seconds
### Coverage
| Area | Coverage |
|------|----------|
| Models | 98% |
| Controllers | 92% |
| Services | 95% |
| **Total** | **94.2%** |
#### Coverage Gaps
| File | Coverage | Risk |
|------|----------|------|
| (none above threshold) | | |
### Security Scan
== Brakeman Report == No warnings found
### Dependency Audit
No vulnerabilities found
### Linting
142 files inspected, no offenses detected
## Functional Flows
### Flow 1: User Checkout
**Status:** PASS
**Steps:** 7/7 passed
**Evidence:** `validation/screenshots/checkout-*.png`
### Flow 2: Order Management
**Status:** PASS
**Steps:** 5/5 passed
**Evidence:** `validation/screenshots/orders-*.png`
## Visual Regression
[Optional: differences from mockups]
## Recommendations
- [ ] Consider adding integration tests for payment edge cases
- [ ] Monitor performance of order list with large datasets
## Owner Sign-off Required
- [ ] I have reviewed this validation report
- [ ] I accept these results
- [ ] I approve for deployment
**Signed:** _________________ **Date:** _____________
1. Document failing tests
2. Attempt auto-fix (max 3)
3. If fixed: re-run full suite
4. If not fixed: escalate with diagnosis
1. Classify severity (critical/high/medium/low)
2. If critical/high: block validation
3. Create fix task
4. Re-run after fix
1. Screenshot failure state
2. Document expected vs actual
3. Create bug fix task
4. Re-validate after fix
Validate-Build is ADVISORY with BLOCKING POWER:
Before declaring product ready:
Previous skill: Execute-Build (provides implementation)
Backtrack to: Execute-Build (if fixes needed)
Output: Validated, Owner-approved product ready for deployment