Skip to main content

Global KYC/KYB Architecture Pattern

Evidence boundary: This is one architecture option, not jurisdiction-specific legal advice or an executed production reference. Regional deployment does not by itself satisfy KYC, KYB, sanctions, privacy, residency, retention, or cross-border transfer requirements.

The pattern uses regional TeaQL models behind reviewed service contracts so regions can keep distinct data shapes and operational controls while exposing a deliberately small result contract to a global application.

Core Pattern

Evaluate a regional implementation model:

Global Application
-> Unified KYC/KYB Service Contract
-> Regional TeaQL Runtime
-> Regional TeaQL Model
-> Regional Database / Evidence Store

The global application should call a service interface. It should not receive direct database connections, table access, or raw SQL capability.

Regional Model, Unified Service Contract

KYC and KYB requirements vary by country and region. A single global model usually becomes either too weak for strict jurisdictions or too complicated for simple ones.

Each region can run its own TeaQL model for local requirements:

  • Individual identity document types
  • Company registration numbers
  • Beneficial owner structures
  • Local address formats
  • Tax identifiers
  • Consent records
  • Evidence retention rules
  • Manual review workflows
  • Regulator-specific decision records

The global application can still use a unified service contract:

verifyPerson(...)
verifyBusiness(...)
getVerificationStatus(...)
requestAdditionalDocuments(...)
recordManualReview(...)
auditVerificationDecision(...)

The contract gives global systems a stable integration point while allowing each region to keep its local data shape and compliance policy.

Do Not Expose Direct Database Access

For compliance-sensitive KYC/KYB systems, direct database access is the wrong boundary.

External systems or cross-region callers should not receive:

  • Database credentials
  • Table-level access
  • Raw SQL access
  • Replicated evidence tables
  • Uncontrolled exports of identity documents or business registration evidence

Route application access through reviewed service and runtime boundaries. TeaQL context and audit hooks can carry evidence such as:

  • Who accessed the data
  • Which tenant, user, or system actor initiated the request
  • Why the data was accessed
  • Which service operation was used
  • Which entities or fields were touched
  • Which jurisdiction handled the request
  • Which audit metadata and runtime policy applied

This boundary is useful only when identity, authorization, tenant scope, audit sinks, direct database access, exports, support tools, and external integrations are all configured and tested. Runtime metadata alone does not enforce the listed controls.

Local Runtime as the Compliance Boundary

A regional TeaQL runtime can be deployed near a regional database. Application policy can then apply local tenancy, authorization, retention, masking, and audit rules. Legal and security reviewers must still confirm whether the deployment location and every data flow meet the applicable requirements.

The global application calls the regional service, but the original evidence can remain local:

Global App
-> KYC/KYB service call
-> EU TeaQL runtime
-> EU model and EU database

Global App
-> KYC/KYB service call
-> Singapore TeaQL runtime
-> Singapore model and Singapore database

This pattern may reduce unnecessary cross-border transfers when the global contract omits raw evidence. Logs, tracing, support access, backups, analytics, callbacks, and operational exports can still create transfers and must be inventoried.

Unified Status, Local Evidence

Most upstream systems do not need full KYC/KYB evidence. They usually need a normalized status and a small set of decision metadata.

For example:

StatusMeaning
pendingVerification has started but is not complete.
verifiedThe person or business passed the configured regional checks.
rejectedVerification failed.
expiredExisting verification is no longer valid.
requires_more_documentsThe regional flow needs additional evidence.
manual_reviewA reviewer must make or approve the decision.

Raw evidence can stay inside the regional system. The service can return only what the global application needs:

  • Verification status
  • Decision timestamp
  • Expiration timestamp
  • Review reason code
  • Required next action
  • Region or policy version
  • Audit reference ID

This keeps the global system useful without turning it into a global repository of sensitive identity and company evidence.

Regional Frontend Experience

The KYC/KYB frontend should not assume every country has the same form.

Different regions may require different:

  • Identity document types
  • Address fields
  • Company registration fields
  • Beneficial owner fields
  • Privacy notices
  • Consent text
  • Language and date formats
  • Required file uploads
  • Manual review instructions

There are two practical frontend patterns.

Local Frontend Deployment

Each country or region can host its own KYC/KYB frontend. The global application redirects the user to the local experience and receives a result or callback when verification completes.

This works well when the local team must fully control consent text, data collection, hosting region, analytics, and evidence upload behavior.

Service-Driven Regional Forms

The regional TeaQL service can return a form schema, page definition, or server-driven UI payload. The global application renders the correct local flow without hard-coding every regional variation.

This works well when the product wants a unified shell but still needs local fields, local validation, local privacy text, and local next actions.

What TeaQL Adds

TeaQL is useful in this architecture because it provides a controlled layer between global applications and local compliance data:

  • Model-driven local data shape: each region can model the fields and relationships it actually needs.
  • Generated typed APIs: service code uses generated business APIs instead of raw SQL or ad hoc table access.
  • Runtime audit hooks: registered paths can carry identity, purpose, comments, and mutation audit metadata to configured sinks.
  • Jurisdiction-specific application policy: local runtime integrations can apply regional tenancy, retention, masking, and authorization rules after those rules are legally defined and tested.
  • Unified contract across different models: global systems call stable KYC/KYB operations even when regional models differ.
  • Reviewable implementation: reviewers inspect generated API usage and service contracts instead of reconstructing database access from scattered SQL.

Use these rules when designing global KYC/KYB with TeaQL:

  1. Keep raw evidence in the jurisdiction where it belongs unless there is a reviewed legal basis for transfer.
  2. Expose service operations, not database connections.
  3. Return normalized status and decision metadata to global systems.
  4. Keep region-specific fields in regional models.
  5. Route supported application access through reviewed TeaQL context and audit paths, and separately govern direct database, batch, export, and support access.
  6. Treat frontend forms as regional experiences, either locally hosted or service-driven.
  7. Keep compliance review focused on service contracts, runtime policy, audit output, and cross-border data movement.

Review Checklist

Before approving a global KYC/KYB implementation, review:

  • Which jurisdiction owns each model and database.
  • Whether global systems can access raw evidence.
  • Which service contract is exposed to global callers.
  • What audit metadata is recorded for each verification operation.
  • Whether the frontend form is local, service-driven, or global.
  • Which fields are returned across borders.
  • How status, rejection reason, expiry, and manual review are normalized.
  • How consent, privacy notice, retention, and deletion behavior differ by region.