Validate Categorization
Path:
loom-builder-sol/gates/validate-categorization.shRelative: gates/validate-categorization.shSubproject: loom-builder-solCategory: scriptsLines: 123Bytes: 3,603Imports: 0Exports: 0
Content Preview
- #!/usr/bin/env bash
- # Deterministic quality gate for artifact categorization.
- # Exit 0 = PASS, exit 1 = FAIL. No LLM needed.
- set -eu
- DIR="/home/mikes/artifacts-hub-astro/artifacts-hub/src/content/artifacts"
- REPORT="$DIR/../CATEGORIZATION_REPORT.md"
- ALLOWED='Tools|Reports|Specs|Guides|Dashboards|Business|SEO|AI/Agents|Design'
- FAIL=0
- # 1. Report file exists and is non-empty
- if [ ! -s "$REPORT" ]; then
- echo "FAIL: CATEGORIZATION_REPORT.md missing or empty"
- FAIL=1
- fi
- # 2. Count HTML files
- TO