Use this as a topology and code-entry index. Detailed algorithms remain with the owning module.

Application shape

Web app → API controllers → application/admin services → domain services/repositories/procedures → databases and external providers. BackgroundServices execute scheduled or queued work outside the initiating request. A source folder is not a navigation or service boundary.

Boundary Source-supported responsibility
MembershipDbContext Platform identity, users/roles, organisations/company registration and selected shared configuration/reference data.
TenantDbContext / TenantDbFactory Operational Person and module records, generally company-scoped within the resolved tenant.
WarehouseDbContext / WarehouseDbFactory Derived reporting Stores and aggregate Containers.
Module-specific contexts EWA/Surveys and other specialised stores appear in their sources; do not assert a universal fixed DbContext count.
External providers HRIS feeds, payment/EWA providers and mail delivery; callback/sync scope is module-specific.

Identity and tenancy

Identity & access owns login gates, JWT/context resolution and permission enforcement. CustomContextAccessorService resolves trusted organisation/company scope for Owned/Acquired contexts; missing scope must not broaden reads. Frontend route guards are not a substitute for server action and record authorization. Selected cross-account reads use a same-tenant -1 sentinel; that is not general cross-tenant authority.

Code entry points

Environments and deployment limits

The original library was copied from repositories on September 19, 2026; many code/demo observations are July snapshots, some SQL August and some V3 decisions October. Historical middleware-dev, Azure and API host references identify evidence environments—not current production endpoints or deployment instructions. Confirm environment, branch/commit, schema version and worker registration with engineering before testing or operating. No deployment topology, secret inventory, production host, disaster-recovery SLA or CI/CD procedure is invented here.

Sources and next reads

Identity, tenancy & authorization — technical view · Settings & roles — technical / engineering documentation · Reporting, analytics & warehouse — technical view · People — HRIS integrations (fusion + generic sync). Module 04/05 chapters hold specific implementation and security caveats.