diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-31 11:04:15 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-31 11:04:15 -0500 |
| commit | 58434f406068887291342dece24a55b0887dd86b (patch) | |
| tree | d1f380a704ede831823b44ed0dbe2ae08019c9b7 /scripts/install-lang.sh | |
| parent | 09896988c1147a196b72a9782b5cc4ba1ede27a4 (diff) | |
| download | rulesets-58434f406068887291342dece24a55b0887dd86b.tar.gz rulesets-58434f406068887291342dece24a55b0887dd86b.zip | |
feat(scripts): add workflow-integrity checker + tests
Startup's drift check catches index-vs-directory mismatches. This goes deeper: scripts/workflow-integrity.py runs six checks over the canonical .ai/workflows/: each file is indexed-or-a-plugin-of-an-indexed-engine, each index entry resolves to a file, each .ai/scripts/ reference resolves, each plugin maps to an indexed parent, each non-plugin workflow has an orientation section, and no trigger phrase is claimed by two workflows. Exit 1 on any finding.
scripts/tests/workflow-integrity.bats covers the clean canonical state plus a fixture per breakage class. make test already globs scripts/tests/*.bats, so it's wired in. I calibrated against the 38 current workflows (clean). The orientation check accepts the real heading variety (Overview / Purpose / When to Use|Run / Status) and exempts plugins.
Diffstat (limited to 'scripts/install-lang.sh')
0 files changed, 0 insertions, 0 deletions
