Main flows
Login (BFF, OIDC Authorization Code + PKCE)
Failures redirect to /login?error=login_failed and emit gateway.session.failed. In development the
web app may call POST /v1/auth/dev-login instead (no IdP).
Authenticated request and permission check
Member provisioning
Member erasure
Membership terms, mandates and audit records are kept (they contain identifiers only). The Workspace account stays suspended; deleting it is a manual operation.
Borrowing
The borrowing service is implemented in services/borrowing but not deployed yet (no compose entry, no gateway
route, no web screen). The diagram follows the code; the custody consumer is in inventory.
Reminders (borrowing.reminder.v1) are produced by a leased job but have no consumer yet. External persons are
created beforehand through POST /v1/borrowing/persons, optionally pre-filled by POST /v1/borrowing/identity/extract
(vision /v1/extract/identity, nothing stored); a sheet of an external borrower can only be submitted once an ID
photo is stored.