Search docs
Docs searchValidation rule
Back to Rule CatalogAP-DB-002DatabaseSQL baseline artifact exists
Checks that the SQL baseline artifact exists for database validation.
errorsetup-gapNo auto-fix
How to fix
- Generate or restore the SQL baseline artifact.
- Update configuration if the baseline moved.
- Keep schema artifacts current with migrations.
What it means
ArchPilot expected a SQL baseline artifact but could not find it.
Why it matters
Database rules need schema evidence to evaluate tenant and query risk accurately.
Common causes
- The SQL baseline was not generated.
- The database artifact path changed.
- Schema generation is not part of the local workflow.
Example bad pattern
Database validation is enabled but db/sql baseline artifacts are absent.Example good pattern
The repository contains current SQL/schema artifacts used by validation.Related files/config
db/sqlpackages/db/prisma/schema.prisma.archpilot/architecture.json
Related CLI commands
archpilot validatearchpilot validate --ci