name: Validate knowledge & routing indexes # BCQuality owns two index generators consumed by the AL review pipeline: # - tools/Build-KnowledgeIndex.ps1 -> knowledge-index.json (lean, agent-replayed # in the CLI run via the review skills' Source step) # - tools/Build-RoutingIndex.ps1 -> routing-index.json (orchestrator-facing; # maps PR-diff signals to domains + backing articles; consumed by the manifest # builder behind BCQ_INDEX_V2) # This workflow guards both generators' health so consumers never have to: each # index a consumer uses at runtime is rebuilt over its own pruned clone, but the # generators that build them live and are validated here. on: pull_request: branches: [main] push: branches: [main] jobs: validate-index: runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@v4 - name: Validate knowledge-index generator shell: pwsh run: ./.github/scripts/Test-KnowledgeIndex.ps1 -Root . - name: Validate routing-index generator shell: pwsh run: ./.github/scripts/Test-RoutingIndex.ps1 -Root .