## Schema and API Contract

lib/schemas.ts defines the contract between the API and the mobile client.

When the API adds, removes, or changes a field:
  1. Update the corresponding schema in lib/schemas.ts
  2. Verify with a diagnostic log (see Figure 16.11 pattern)
  3. Update the types/index.ts re-export if the inferred type changes

Zod strips unknown fields by default.
A field present in the API response but absent from the schema
is silently undefined in the application. No error is thrown.
This category of bug requires explicit verification.
