Skip to content

Quality Gates

Updated: 2026-05-28

Use these gates before pushing application changes. Code and test output are the source of truth; planning docs must be updated after the gates, not before them.

Required Commands

npm run typecheck
npm run lint:warning-budget
npm run test:run
npm run test:coverage
npm audit --omit=dev
npm run build
npm run self-hosted:standalone-check
curl -fsS "$APP_URL/api/version"

Expected current baseline:

Pre-Push Truth Script

Run the combined local gate when preparing a branch:

npm run truth:prepush

The script prints git status, typecheck, lint warning budget, tests, audit severity totals, and route/test inventory. It fails on type/test errors, ESLint errors, warning-budget growth, audit endpoint failures, and high or critical audit findings.

Current Security Expectations

Source: docs/dev/quality-gates.md