Overview
The/sdd-verify command launches the verifier sub-agent to validate that the implementation matches the specs, design, and tasks. It performs comprehensive quality checks and produces a compliance report.
v2.0 Enhancement: Now runs real tests and builds, produces spec compliance matrix, and reports issues at severity levels.
Usage
string
Optional. The change to verify. If omitted, verifies the most recent change.
What It Does
1. Loads Artifacts
Reads all planning and implementation artifacts:proposal.md- Original intent and scopespecs/*.md- Requirements and acceptance criteriadesign.md- Technical approach and decisionstasks.md- Implementation checklist
2. Performs Validation Checks
- Completeness
- Correctness
- Coherence
- Quality
- ✓ All tasks marked complete?
- ✓ All files mentioned in tasks exist?
- ✓ Any TODO comments left in code?
3. Runs Tests and Build (v2.0)
Executes real commands:4. Builds Spec Compliance Matrix (v2.0)
Maps each requirement to implementation status:5. Reports Issues by Severity
array
Blocking issues that prevent the change from being archived:
- Test failures
- Build failures
- Unimplemented MUST/SHALL requirements
- Missing rollback plan steps
array
Issues that should be addressed but don’t block:
- SHOULD requirements not implemented
- Coverage below threshold
- TODOs in code
- Design deviations
array
Nice-to-have improvements:
- Code style inconsistencies
- Optimization opportunities
- Documentation gaps
6. Generates Verification Report
Createsverification-report.md or verify-report artifact with:
- Executive summary (PASS / FAIL / WARNINGS)
- Spec compliance matrix
- Test results
- Issues by severity
- Recommendation (ready to archive or needs work)
Example Output
Successful Verification
SUGGESTION
-
Consider extracting theme colors to separate file
- Current: All in globals.css
- Suggestion: theme-colors.css for easier maintenance
-
Add visual regression tests for theme switching
- Current: Only unit tests
- Suggestion: Playwright/Cypress tests for UI
Verification Report
Status: ✅ PASS WITH WARNINGSSummary
- All requirements implemented
- All tests passing
- Build successful
- 1 warning (TODO comment)
- 2 suggestions for improvement
Recommendation
Ready to archive - Change is complete and meets all acceptance criteria. Warnings are minor and don’t block release.Artifacts
- openspec/changes/add-dark-mode/verification-report.md
✅ Verification complete. Run
/sdd-archive to close this change.
Verification Configuration
Configure inopenspec/config.yaml:
string
Command to run tests (e.g.,
npm test, pytest, cargo test)string
Command to build the project (e.g.,
npm run build, go build)number
default:"80"
Minimum test coverage percentage required (0-100)
Validation Criteria
MUST/SHALL Requirements
All requirements using RFC 2119 keywords MUST or SHALL must be implemented:SHOULD Requirements
Recommended but not blocking:MAY Requirements
Optional features:When to Use
After Implementation
Run after
/sdd-apply completes all tasksBefore Archiving
Always verify before running
/sdd-archiveAfter Bug Fixes
Re-verify after addressing issues
Pre-Deployment
Final quality gate before release
Fixing Verification Issues
When verification fails:1
Review the report
Read
verification-report.md to understand all issues2
Prioritize CRITICAL issues
Fix blocking issues first (failed tests, unmet MUST requirements)
3
Address WARNINGS
Fix non-blocking issues if time permits
4
Re-verify
Run
/sdd-verify again after fixes5
Archive when passing
Run
/sdd-archive once verification passesVerification Report Format
The generated report includes:Best Practices
Always verify before archiving
Always verify before archiving
Make
/sdd-verify a mandatory step. It catches issues early and ensures quality.Fix CRITICAL issues immediately
Fix CRITICAL issues immediately
Don’t ignore failed tests or unmet requirements. These indicate incomplete implementation.
Document known issues
Document known issues
If you intentionally skip a SHOULD requirement, add a note in the proposal explaining why.
Use verification as code review
Use verification as code review
The compliance matrix serves as a checklist for manual code review.
Related Commands
- /sdd-apply - Implement before verifying
- /sdd-archive - Archive after successful verification
- /sdd-continue - Alternative workflow progression