Non-blocking validation and reporting layer for CastQuest documentation
This system provides comprehensive auditing of documentation completeness and accuracy across the entire CastQuest monorepo.
# Run validation
pnpm run validate:docs
# View report
cat DOCS_VALIDATION_REPORT.mdLast Run: 2026-01-19T09:02:24.051Z
| Metric | Value | Status |
|---|---|---|
| Features Inventoried | 55 | ✅ |
| Fully Documented | 12 (22%) | 📈 |
| Partially Documented | 17 (31%) | |
| Missing Documentation | 26 (47%) | ❌ |
| Production Readiness | 8/8 ADEQUATE | ✅ |
| Consistency Issues | 0 | ✅ |
| File | Purpose | Audience |
|---|---|---|
| VALIDATION_QUICKSTART.md | Practical guide with examples | All users |
| VALIDATION_IMPLEMENTATION.md | Architecture and design | Technical leads |
| scripts/README.md | Script documentation | Developers |
| DOCS_VALIDATION_REPORT.md | Latest validation results | Everyone |
Enumerates all implemented features:
- 📱 Web application (15 pages, 12 components)
- 📜 Smart contracts (22 contracts, 6 categories)
- 🔧 SDK modules (12 modules)
- 🤖 AI agents (11 agents)
- 🔍 Indexers (3 services)
- 🏗️ Infrastructure (Docker, K8s, Terraform)
- ⚙️ CI/CD workflows (3 pipelines)
Maps features to documentation with coverage status:
- ✅ FULL - Well documented
⚠️ PARTIAL - Needs more detail- ❌ MISSING - No documentation
Validates each doc contains:
- Purpose & architecture
- Setup instructions
- Environment variables
- Build commands
- Runtime behavior
- Deployment notes
- Security considerations
Assesses critical documentation:
- ✅ Production build steps
- ✅ CI/CD pipeline
- ✅ Infrastructure deployment
- ✅ Secret management
- ✅ Monitoring & alerting
- ✅ Upgrade/migration
- ✅ Disaster recovery
- ✅ Performance tuning
Verifies:
- Commands exist in package.json
- File paths are valid
- References are accurate
- No broken links
# 1. Implement feature
# 2. Run validation
pnpm run validate:docs
# 3. Check if feature appears as MISSING
grep "YourFeature" DOCS_VALIDATION_REPORT.md
# 4. Add documentation per suggestions
# 5. Re-validate
pnpm run validate:docs# 1. Run validation
pnpm run validate:docs
# 2. Find HIGH severity docs in Section 3
# 3. Add missing sections
# 4. Verify improvement
pnpm run validate:docs# 1. Validate before release
pnpm run validate:docs
# 2. Check Section 5 (Production Readiness)
# 3. Ensure all items are ✅ ADEQUATE
# 4. Address any ❌ or ⚠️ itemsTop-level metrics and coverage statistics
Table showing all features and their doc coverage
Docs missing required sections (HIGH/MEDIUM severity)
Broken commands, paths, or references
Assessment of deployment documentation (BLOCKER/IMPORTANT/OPTIONAL)
Ready-to-use list with suggested filenames and locations
Prioritized action items (HIGH/MEDIUM/LOW)
The validation script can be customized by editing scripts/validate-docs.js:
- Add/remove feature categories
- Customize required documentation sections
- Adjust production readiness checks
- Modify coverage detection logic
Recommended approach (non-blocking):
- name: Validate Documentation
run: pnpm run validate:docs
continue-on-error: true
- name: Upload Report
uses: actions/upload-artifact@v3
with:
name: docs-validation-report
path: DOCS_VALIDATION_REPORT.mdThis runs validation as an informational step without blocking the build.
- ❌ Does NOT block builds
- ❌ Does NOT block deployments
- ❌ Does NOT modify code
- ✅ Purely informational
- Covers all feature categories
- Checks 8 required sections per doc
- Validates 8 production readiness criteria
- Scans 241 documentation files
- Executes in ~167ms
- Zero external dependencies
- Node.js built-ins only
- Clear coverage status
- Suggested file locations
- Prioritized recommendations
- Ready-to-use checklists
- Run after adding features
- Run after updating docs
- Run before releases
- Run weekly/monthly for health checks
Edit scripts/validate-docs.js when:
- Adding new feature categories
- Changing documentation structure
- Updating validation rules
- Adding new checks
Compare metrics over time:
# Run validation weekly
pnpm run validate:docs
# Track these metrics:
# - % Fully Documented (target: >80%)
# - Missing Documentation count (target: <10)
# - Completeness Issues (target: <50)
# - Consistency Issues (target: 0)
# - Production Readiness (target: all ✅)To improve the validation system:
- Add checks: Edit validation logic in
validate-docs.js - Improve reports: Enhance report generation
- Document: Update guide files
- Test: Run validation on real docs
- Build Guide:
BUILD_DEPLOY.md - Deployment Guide:
DEPLOYMENT_GUIDE.md - Main README:
README.md - Changelog:
CHANGELOG.md
Script issues?
- Check
scripts/README.md - Review
VALIDATION_IMPLEMENTATION.md - Inspect
scripts/validate-docs.js
Report questions?
- See
VALIDATION_QUICKSTART.md - Review example workflows
- Check FAQ section
Documentation gaps?
- Run validation
- Check Section 6 for suggestions
- Use Section 7 for priorities
The validation system is working when:
- ✅ Executes in < 5 seconds
- ✅ Generates complete report
- ✅ Finds real documentation gaps
- ✅ Provides actionable recommendations
- ✅ Does not block development
- ✅ Helps improve documentation over time
Built for: CastQuest/cast
Version: 1.0.0
Status: Production Ready 🚀
Type: Non-blocking Validation Layer
Last updated: 2026-01-19