mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 09:26:52 +01:00
Retire the orchestrator's hardcoded ~28-token signal catalog by compiling a routing index from article front-matter. New tools/Build-RoutingIndex.ps1 scans all knowledge layers and emits routing-index.json (signal-token -> domain + backing articles), seeded from the migrated legacy catalog (routing-seed.json) so recall is never below today. Optional per-article 'signals:' front-matter (validator rule R24) is the authored precision path; domain-normalization reconciles front-matter/orchestrator/feedback domain vocabularies. Artifact is a runtime build (gitignored), orchestrator-facing only (not the lean agent-replayed knowledge index). CI guard Test-RoutingIndex.ps1 asserts determinism, seed recall floor, no orphaned signals, and normalization completeness; wired into the index workflow. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
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 .
|