PR #271 · pramaan-io/pramaan-app · merged 2026-06-09
App and backend are speaking two different matter languages
Story eleven-hundred
Backward compatibility is a trap — switch the whole shape, or the day backend hardens the contract, your app dies.
The fix — Match the contract — template id, composition counts, renamed proceeding fields — or every matter request is a mistranslation.
sequenceDiagram autonumber participant backend as Backend (pramaan-functions) participant spec as OpenAPI spec participant codegen as pnpm codegen participant app as App (lib + UI + mocks) backend->>spec: new matter template contract spec->>codegen: pnpm codegen runs codegen->>app: fresh hooks + schemas land in src/gen app->>app: gateway, types, UI, mocks, stories all adopt new shape