Spaces:
Paused
DATABASE_VIEW_INTELLIGENCE_CATALOG.md Validation Report
Validation Metadata
Date: 2025-11-25
Validator: Automated Script (validate-view-documentation.sh)
Source Schema: service.data.impl/src/main/resources/full_schema.sql
Documentation File: DATABASE_VIEW_INTELLIGENCE_CATALOG.md
Validation Method: Automated comparison script
Repository: Hack23/cia
Executive Summary
This validation report confirms the current status of view documentation coverage.
Current Status
| Metric | Value | Status |
|---|---|---|
| Total views in database | 84 | β Confirmed |
| Total views documented | 84 | β Complete |
| Documentation coverage | 100.00% | β Complete |
| Views missing from documentation | 0 | β None |
| Views documented but not in DB | 0 | β None |
Severity Assessment
π’ OPTIMAL: Documentation provides 100.00% coverage for 84 database views.
Progress Since Previous Validation (2025-11-25)
| Metric | Previous (2025-11-25) | Current (2025-11-25) | Improvement |
|---|---|---|---|
| Total views in database | 82 | 84 | +2 |
| Total views documented | 9 | 84 | +75 views |
| Documentation coverage | 10.98% | 100.00% | +89.02% |
| Views missing from documentation | 73 | 0 | -73 views |
Missing Views
β All views are documented! The DATABASE_VIEW_INTELLIGENCE_CATALOG.md now provides comprehensive coverage for all 84 database views.
Next Steps
β No action required. Documentation is complete and up-to-date.
Maintenance Tasks
- Monthly Validation: This script runs automatically via GitHub Actions
- Schema Changes: Update documentation when new views are added
- Quality Review: Periodically review examples and performance metrics
- Cross-References: Maintain links to related intelligence frameworks
Validation Methodology
Automated Process
This validation is performed by validate-view-documentation.sh:
- Extract Schema Views: Parse full_schema.sql for CREATE VIEW statements
- Extract Documented Views: Parse DATABASE_VIEW_INTELLIGENCE_CATALOG.md for view headers
- Compare Sets: Identify missing and extra views using set operations
- Calculate Coverage: Compute percentage of documented views
- Generate Report: Create this markdown report with findings
Commands Executed
# Extract views from schema
grep -E "^CREATE (OR REPLACE )?(MATERIALIZED )?VIEW" full_schema.sql | \
sed 's/.*VIEW //' | sed 's/ AS.*//' | sed 's/public\.//' | sort | uniq
# Extract documented views
grep -E "^### view_" DATABASE_VIEW_INTELLIGENCE_CATALOG.md | \
sed 's/### //' | awk '{print $1}' | sort | uniq
# Compare and calculate coverage
comm -23 schema_views.txt documented_views.txt > missing_views.txt
Validation Schedule
- Automated: Monthly via GitHub Actions (1st of each month at 02:00 UTC)
- Manual: Can be triggered via workflow_dispatch
- On Changes: Runs automatically when schema or documentation changes
Changelog
| Date | Coverage | Missing Views | Status |
|---|---|---|---|
| 2025-11-21 | 10.98% | 73 | Initial validation |
| 2025-11-25 | 100.00% | 0 | β Complete |
Report Status: GENERATED
Generated By: validate-view-documentation.sh
Next Validation: 2025-12-01 02:00 UTC