Accounts Are the Spine

The logged-in customer account (email OTP, no password) is now the primary path. A still-valid session silently renews itself once per visit — an active customer never gets logged out mid-task, while an abandoned session still dies within 24 hours. Track-by-token remains as the anonymous fallback.

Offline Submission (PWA)

The portal installs as an app and keeps working without a connection. A form filled offline is saved on the device and submitted automatically the moment connectivity returns — the customer does nothing.

  fill form offline
      |
      v
  saved on device (IndexedDB) with a client reference id
      |
      |   connection returns (background sync / online event / next app open)
      v
  auto-submit  >  server dedupes on the reference id  >  exactly ONE case

Action Needed — Customers Inside the Workflow

A workflow step can be assigned to the customer. The portal surfaces it as an "Action needed" card — approve/decline with a comment, fill a small form, or confirm a document upload — and the stage is blocked until they act. Completion goes through the same engine a worker uses: it fires the same connector rules, advances the stage when all required steps are done, and lands in the audit trail with a customer actor.

A required customer step blocks the stage by construction — there is no separate reminder machinery to keep in sync; the workflow simply cannot advance without them.

Messages, Sessions, and Closing the Loop

Branding & Real Forms

Trust Model