A change is done when every applicable item below holds on the exact tree you are shipping. The source list is the Definition of Done section of AGENTS.md; this page adds the commands and the reasoning. The pull request template links here instead of copying it.
The checklist#
| Item | Applies when | Command or evidence |
|---|---|---|
| Full local gate is green | always | pnpm run verify from the repo root (format, typecheck, lint, tests, build, budgets, security scan, prod-compose check, verify:data, verify:rls, audit:all, dependency audit) |
| Web build is green | apps/ changed |
pnpm -. A type check can pass on a stale turbo cache while the build fails. |
| Data reconciliation passes | a metric-bearing surface or rollup changed | pnpm run verify:data; a new metric surface adds an assertion tied to an outside source (§53, §55) |
| Tenancy gate passes | schema, RLS, procedures or scoping changed | pnpm run verify:rls as the application role (§66, §118) |
| Browser or e2e check | an operator-critical journey changed | pnpm test:e2e or a manual browser pass: Vietnamese copy, narrow and wide layout, empty, loading and error states |
| Schema change is complete | a table or column changed | migration, RLS policy, is_ column, index review, backfill or seed note; additive and idempotent against live data; scripts/ still runs |
| New class of bug has a rule and a guard | a bug came back or a new kind surfaced | a numbered rule in the owning pack, plus the strongest guard that fits, listed in audit:all |
| Docs and changelog | behaviour, architecture or tenancy changed | CHANGELOG. entry; the affected docs/ page |
| Evidence is in the pull request or hand-off | always | commands run with results, warnings, anything skipped and why, screenshots for UI, migration notes |
CI must also pass: pre-commit, pre-push and every applicable workflow. A local failure or warning that CI would also hit blocks the change.
Rules behind the checklist#
- Run
verifyat the repo root, never through--filter. - A green result counts only for the tree fingerprint it ran on (§144). A status line from another person or an earlier run is not evidence; rerun the gate.
- Never pass
--no-verifyor suppress an audit without itsaudit-ok-*token and adocs/SECURITY.mdentry. - Ask before changing org-scoped schema or RLS, the runtime database identity, encryption or keys, credential storage, authentication middleware, money semantics beyond integer VND, or production data and deployments.