2. Test Taxonomy Categories

Purpose: Run all taxonomy-related tests — drift detection, isolation, integration, and content rules validation.

Prerequisites: None (regex-based, no API keys or DB needed)

Cost / Duration: $0 | ~10-20 seconds

Prompt

Run the full taxonomy test suite:

```bash
bun test packages/ai/src/drift/__tests__/taxonomy-drift.test.ts
bun test packages/ai/src/drift/__tests__/taxonomy-isolation.test.ts
bun test packages/ai/src/drift/__tests__/taxonomy-integration.test.ts
```

Or run all three at once:

```bash
bun test packages/ai/src/drift/__tests__/taxonomy-
```

This validates:
- **Taxonomy drift** — Prefer-over violations detected, domain terms present,
  avoid patterns enforced, vocabulary formatting correct
- **Taxonomy isolation** — No contamination between taxonomies (terms from
  one taxonomy don't leak into another)
- **Taxonomy integration** — End-to-end pipeline validates taxonomy rules
  are applied correctly during content generation

Any failure means taxonomy content rules in
`packages/ai/src/taxonomy-content-rules.ts` need attention.

Verification

  • All three taxonomy test files pass
  • Prefer-over violations are correctly detected
  • Domain terms are present for each taxonomy
  • Avoid patterns are enforced
  • Zero cross-taxonomy contamination
  • Vocabulary formatting follows kebab-case convention

Back to index