QA and test data
Both parts are optional, asked at setup (default on) and changeable by re-running init (--qa-checklist, --test-data).
QA checklist
work/qa/checklist.md is generated from the living specs — never edited by hand:
- one item per scenario, grouped by capability and requirement;
- the EARS sentence, the Given / When / Then steps, the ZOMBIES tag;
- the test-data fixture that provides the scenario's data (or "no fixture").
agent-kit qa sync regenerates it (and checklist.html); agent-kit specs merge runs it for you.
QA runs
A QA pass is a dated file in work/qa/runs/:
npx @razcue/agent-kit qa run --env staging
Fill Result (pass · fail · blocked · n/a) and Note for each scenario. Or open work/qa/checklist.html in a browser, record results there (kept in the browser) and Export run to save the same file.
agent-kit qa status shows the latest result per scenario. Each run stores the scenario's text hash, so a scenario that changed after it passed shows re-check, and one never tested shows never run.
Test data (Supabase)
Supabase projects get supabase/test-data/ (path and prefix configurable):
| File | What |
|---|---|
env.sql | Creates public._env — which environment a database is. Run it in every environment and set the value once. |
seed.sql | Creates the test data through the app's RPCs. One transaction. |
purge.sql | Deletes only the test rows, children first. One transaction. |
Rules the scripts and the stack skill enforce:
- The
_envguard first. Both scripts refuse unless_envsaysdev,testorstaging— no row orproductionmeans no change. - Marked rows only. Every row starts with the prefix (
TEST_); purge matches withstarts_with(), neverLIKE. - Through the RPCs, so balances, stock and audit rows stay consistent.
- Relative dates (
current_date - 30). - Fixtures per scenario, chosen with ZOMBIES:
-- @fixture invoices.R2.S3 @boundary.agent-kit qa gapslists scenarios without a fixture and fixtures naming unknown scenarios.
Preflight warns when migrations change and neither seed nor purge does. See the test data guide for applying them.