Product architecture

How the passport engine works

Hospitality Passport is the identity, compliance and payments layer that sits above external training providers. This page shows the core flows — from module completion at a training provider, through the certificate ingest webhook, to the operator verifying a worker on their shift.

System overview

Four surfaces, one passport record.

Candidate app
Mobile-first passport, QR, renewals
Operator console
Multi-site verification & billing
Training provider
Publishes modules & certificates
Admin console
Support, override, reconciliation
Passport core
Identity, entitlements, expiry engine
Ledger (Postgres)
Immutable event store + audit
Edge API
tRPC + webhooks + Stripe
TSG webhook
module.completed → cert.issued
Stripe billing
Passport & operator subscriptions
Notification bus
Email · SMS · push · digest
Verifier
QR + signed JWT · 250ms P95

Certificate ingest flow

From module completion at TSG to a verified passport.

  1. 1
    Candidate completes module on TSG
    External LMS
  2. 2
    TSG posts signed webhook
    POST /hooks/tsg
  3. 3
    Passport core verifies signature
    HMAC + replay guard
  4. 4
    Certificate + expiry written to ledger
    Postgres · immutable
  5. 5
    Passport & operators notified
    Push + digest

Expiry & renewal rules

Deterministic engine, per-module metadata driven.

  • Renewal windowT–30 days before expiry
  • Grace period7 days post expiry (read-only passport)
  • EscalationOperator notified at T–14, T–7, T–0
  • Auto-bookIf module has provider capacity & candidate opt-in
  • Reciprocal recognitionEU Level-2 equivalents auto-mapped

Verification path

Operator scans a passport QR — what happens next.

  1. 1Operator app scans QR (offline capable, signed JWT)
  2. 2Signature validated against rotating public key set
  3. 3Cached passport read (edge KV, sub-100ms) → live check if stale
  4. 4Result rendered with modules, expiries, employer chain
  5. 5Verification event streamed to audit log & operator BI
99.98%
Rolling 90-day uptime
<180ms
Verify P95 (edge)
12
Provider integrations planned
ISO 27001
In audit — Q3 2026