What problem does it solve?
It prevents broken or inconsistent database and workspace migrations by enforcing a checklist of conventions for adding, registering, and testing migration files in the Vellum Assistant codebase.
Core Features & Use Cases
- DB Migration Rules: Guides adding idempotent migration files under
assistant/src/persistence/migrations/, registering them in migrationSteps, and adding focused db-*migration*.test.ts tests.
- Workspace Migration Rules: Covers numbered workspace migration files, registration in
WORKSPACE_MIGRATIONS, and workspace-migration-*.test.ts test coverage.
- Release Notes Guardrails: Explains that release-note workspace migrations are frozen by a feature-flag guard test and must not be extended.
- Use Case: When adding a new persisted schema field, follow the checklist to create an idempotent migration, register it in the correct steps array, and run the focused test plus
bunx tsc --noEmit before merging.
Quick Start
Ask the assistant to review a new database migration file against the migration checklist and confirm it is idempotent, registered, and covered by a focused test.