--- name: agylite-testing description: Verify a change locally and test-first (impacted tests, types, lint, build, plus the browser check for UI work) with recorded evidence from `agylite verify` — use when asked to test, verify or check that a change works. disable-model-invocation: true --- # Agylite Testing Produces a verification result that someone else can check: each check with its result and counts, and an evidence file. It never calls something verified because the code reads correctly or a page looks right. ## Use when · Not for - Use when: a change has to be tested or verified, tests are missing, or a check is failing. - Not for: making the change itself → `agylite-engineering` · exploratory QA of a running app → gstack `/qa` · a release decision → `agylite-production` · judging how a UI looks → `agylite-design`. ## Before you start - You need the change (the working tree, or `--paths `) and, when there is one, its plan task id (`T-…`). - Policy: `config/verification.yaml`. Tests, types, lint and build for every change; UI work also runs the browser check. Evidence is a command with its exit code and counts. ## Steps 1. **Plan the checks.** `agylite verify --plan` (default: the working-tree changes; or `--paths `). Expect: the impacted tests by kind (unit, api, integration, idempotency, security, regression) and the project's typecheck, lint and build. Move on when: you know which checks will run and which changed behaviour has no test. 2. **Write the missing tests first.** Every changed behaviour needs a test that fails without the change. For a bug fix, write the failing regression test before the fix. Move on when: each new test has been seen failing for the right reason. 3. **Run.** `agylite verify --task ` (or `agylite test` for tests only; `--all` runs the full suites, which is for releases). Expect: each check PASSED, FAILED, NOT_TESTED or BLOCKED, and an evidence file `.agylite/evidence/