Imported from asas-erp-saas-1/As (
docs/engineering-history/branches/056-platform-architecture-2026/docs/engineering-history/branches/054-platform-architecture-2026/docs/engineering-history/branches/051-platform-architecture-2026/engineering-history/branch-snapshots/048--chore--consolidation-promotion-2026-10-16/.agents/skills/asas-testing-verification/SKILL.md). Install upstream withnpx skills add asas-erp-saas-1/As --skill asas-testing-verification. Copyright stays with the author.
Testing and Verification
Principle
The implementing agent is not the sole evidence for correctness. Verification must be fresh and adversarial for material changes.
Test layers
Use the smallest sufficient combination of:
- static/type/lint checks;
- unit tests;
- domain invariant tests;
- state-machine legal/illegal transition tests;
- integration tests;
- database constraint tests;
- RLS/tenant tests;
- authorization tests;
- event/outbox/idempotency tests;
- concurrency/race tests;
- API contract/webhook tests;
- E2E/browser tests;
- accessibility tests;
- visual regression;
- migration replay/rollback evidence;
- performance/recovery tests when applicable.
Critical commercial loop
Trace and test:
Project → Building → Unit → Lead → Assignment → Activity → Visit → Offer → Reservation → Contract → Payment Plan → Payment/Receipt → Audit → Reporting.
Verification status
Use only:
VERIFIED / FAILED / BLOCKED / NOT_EXECUTED.
A passing typecheck is not domain verification. A screenshot is not interaction verification. Documentation is not runtime evidence.
Evidence
Record exact commands, inputs, outputs, commit and artifact references for material closure. Never invent missing evidence.
