engineering docs

Testing contract

Setiap domain baru minimal memiliki test untuk happy path, validation error, unauthenticated request, forbidden organization, not found, dan duplicate/idempotency case.

Smoke setelah deploy

GET /healthz
GET /api
GET /api/v1/meta
OPTIONS /api/<protected-route>
GET public route
GET protected route dengan token fixture

Fixture auth harus menggunakan test user dan organization khusus. Jangan memakai production token atau data customer nyata. Contract test memastikan envelope error dan status code tetap kompatibel dengan web/mobile.