Admin GuidesPlatform Admin

Platform Admin Layer

Who this guide is for: EmbayLMS Inc. staff with a platform user account. The platform is not accessible to tenant admins or learners.

Overview

app.embaylms.com is the Embay staff platform administration domain. It provides cross-tenant operations — tenant provisioning, status management, migration monitoring, billing oversight, and support tooling — against the global schema. Platform users are a separate identity from tenant users; they are stored in embaylms_global.platform_users.

The platform does not surface tenant-scoped features (courses, enrollments, catalog, SCORM, reports, learning paths, etc.). Those are always accessed at the tenant’s own subdomain (e.g. acme.embaylms.com).


Platform User Roles

RoleWhoWhat they can do
super_adminEngineering leads, opsEverything: create/delete/suspend tenants, manage platform users and roles, override tenant config, export audit logs, impersonate any tenant user
support_agentCustomer support staffRead all tenant records (status, config, migration state). Impersonate a tenant user for debugging (1-hour session, audit-logged). Cannot create/delete tenants or manage platform users.
billing_adminFinance / accountsRead billing and subscription data across all tenants. Export invoices. No access to tenant user data or migration tools.

Getting Access

Platform accounts are created by a super_admin via /platform/users. There is no self-signup.

  1. Ask a super_admin to invite your Embay email address
  2. You will receive an email with a one-time setup link
  3. Set your password and enable TOTP MFA (required for all platform users)
  4. Navigate to https://app.embaylms.com and sign in

Bootstrap note: The very first super_admin must be created via the seed script:

pnpm tsx infra/scripts/seed-platform-admin.ts

This is a one-time operation. See the runbook in docs/enablement/runbooks/ for production bootstrap steps.

Forgot Your Password?

Platform accounts have self-service password reset:

  1. On the sign-in page (https://app.embaylms.com/platform/login), click Forgot password?
  2. Enter your platform account email and click Send reset link
  3. Check your inbox for an email titled “Password reset — EmbayLMS platform” and click Reset password
  4. Choose a new password (minimum 8 characters) and confirm it
  5. Sign in with the new password — the old one stops working immediately
BehaviourDetail
Link lifetime1 hour — request a new link if it expires
Email languageMatches the locale of the page you requested from (EN / FR-CA)
Unknown emailsThe page always shows the same success message — it never reveals whether an account exists
Rate limit5 requests per minute per IP address
AuditBoth the request and the completed reset are written to the audit log
MFAResetting the password does not reset TOTP MFA. If you also lost your authenticator, a super_admin must clear your MFA enrollment

Troubleshooting

  • No email arrives: check spam, confirm you used the exact email on your platform account, and verify with a super_admin that the account is active — deactivated accounts never receive reset emails.
  • “This reset link is invalid or has expired”: the link is older than 1 hour, was already used after a newer one was issued, or was generated for a tenant account. Request a fresh link from /platform/forgot-password.

Dashboard (/platform/dashboard)

Shows aggregate platform health. Visible to all platform roles.

MetricDescription
Total TenantsAll tenants in the global registry
Active TenantsTenants with status = active
Migrations DoneCount of completed migration jobs
Migrations FailedCount of failed jobs (highlighted in red if > 0)
Get help questionsQuestions asked to the Get help assistant this month, across every tenant, with the share no guide answered. Opens Help insights. Shown to super_admin and support_agent only (LMS-1322)

Tenant Management (/platform/tenants)

Access: super_admin for mutations. All roles can view.

Viewing Tenants

Lists every tenant, one row each. The count above the table says how many are listed.

Click a column heading to sort by it, and click it again to reverse the order. Rows with no value in that column stay at the bottom in both directions. Plan sorts by tier (Free, Starter, Growth, Enterprise), Health puts the tenants at risk first, and Trial sorts by end date.

Columns, above the table on the right, chooses which columns show. Tenant is always shown. Reset to default restores the default columns and name order. Your columns and sort order are remembered on the browser you are using, not on your account: another browser or computer starts from the defaults.

ColumnShown by defaultWhat it shows
HealthYesThe red, amber or green dot that the Health tab explains
TenantAlwaysDisplay name and subdomain. Opens the tenant
StatusYesTenant status, plus Demo, Academy, Engineering or Deleted
PlanYesPlan tier. A tenant with no subscription record reads Free. Empty for a tenant that is not billed
SubscriptionYesActive, Trialing, Past due, Cancelled or Expired. A past-due row adds the date it began, and a scheduled cancellation adds the date it takes effect. Demo, sandbox, Academy and engineering tenants read Not billed
TrialYesTrial end date and the days left, in amber at 7 days or fewer. For a lapsed trial, how long ago it ended. Empty once the tenant has converted
SeatsYesLicensed users over the seat cap, or No cap
RenewsNoNext renewal date. Empty when the subscription is set to cancel
Billing cycleNoMonthly or Annual
Payment methodNoCard or Invoice, for paid plans
Last activeYesMost recent activity in the tenant
Active users (30 days)NoUsers who signed in during the last 30 days
Published coursesNoCourses in the published state
Storage usedNoContent storage
RegionNoThe region stored on the tenant. Every tenant runs in ca-central-1 today; the Create tenant form has no Region field (LMS-1774)
CreatedYesThe day the tenant was created

The seats and usage columns come from the hourly metrics rollup, so a tenant created within the last hour shows a dash until its first rollup has run.

Tenant Detail (/platform/tenants/{slug}) — tabbed workspace

Access: all platform roles can open the page; write actions are gated per tab (below). Three read surfaces are narrower than the page — the Administrators list in Key Contacts (tenant user data) plus the Recent Activity card and the whole Audit tab (audit data) are visible to super_admin and support_agent only. A billing_admin sees none of them; they are omitted rather than rendered empty, and the audit trail is withheld server-side, not merely hidden in the UI. LMS-775.

Opening a tenant shows the central per-tenant management workspace, organized into tabs. The tab is part of the URL (?tab=…), so any tab can be bookmarked or linked in a support thread. Log in to tenant and the Edit drawer (the global tenant record: display name, custom domain, status) both live in the page header on every tab, Overview included. The Overview tab’s content is read-only — anything that changes entitlements, subscription, or exports lives on its own tab.

When staff notifications were raised about the tenant in the last 30 days, the header also shows an amber “Alerts (N, last 30 days)” badge beside the status (LMS-1246). N counts notifications (events), not deliveries: one alert sent to three people on bell and email counts once. The badge opens Platform → Notifications → Deliveries filtered on this tenant and the last 30 days, where “Export CSV” downloads them. It is hidden when nothing was raised, and every platform role that can open the page sees it.

TabWhat’s thereWho can see itWho can change things
OverviewIdentity (region, created, custom domain, billing, health badge), usage metric cards, configuration snapshot, recent activity, Key Contacts, support-access panelAll roles — but the Administrators list within Key Contacts and the Recent Activity card are super_admin/support_agent only, and the support-access panel is super_admin onlyNobody — read-only
EntitlementsLive gated-feature flags vs tier defaults + effective capsAll rolessuper_admin, billing_admin
SubscriptionCommercial summary + the four subscription actions (tier / trial / limits / billing state)All rolessuper_admin, billing_admin
HealthThe three customer-health measures behind the R/A/G signal, with thresholdsAll rolesNobody — read-only
AuditThis tenant’s audit trail, filterable, with CSV exportsuper_admin, support_agent (tab hidden otherwise)Nobody — read-only
Data ExportFull tenant data-export jobs + downloadssuper_admin (tab hidden otherwise)super_admin

Two more tabs depend on the tenant kind. Every customer tenant has an Academy tab (its staff’s Embay Academy adoption, all roles, read-only). The platform Academy tenant has a Curriculum tab instead (super_admin only). Both are described under Embay Academy below.

Usage metrics

Metrics come from a scheduled hourly rollup into tenant_metrics, never a live query across tenant schemas (ADR-013; the isolation rule in CLAUDE.md §3). The freshness line under the cards shows when the tenant was last computed — a tenant created minutes ago reads “Metrics pending first sync” until the next sweep.

The Users card carries two different “active” numbers; they answer different questions and must not be substituted for each other:

FieldMeansUse it for
LicensedActive, non-deleted accounts — provisioned seatsSeat-cap headroom
Signed in (30d)Accounts that actually signed in during the windowThe billing definition (PRD §7.6) — matches the tenant billing page
Active (30d)Accounts whose record changed in the windowEngagement only. Moves when an admin edits a profile or SCIM syncs, so it can exceed “Signed in” without anyone logging in

A large gap between Signed in and Active usually means provisioning activity (a bulk import or SCIM run) rather than real usage.

Storage is the tenant’s content usage — the de-duplicated sum of module asset sizes, the same figure the plan-cap meter enforces — shown against the plan’s cap.

The rollup holds counts only, no PII.

Owner email confirmed (LMS-1622). A workspace opened on the website sends email to nobody but its Owner until the Owner confirms their address from the link in the welcome email. The configuration snapshot says so, read-only: “Owner email confirmed” reads Yes once the Owner confirmed, “No, mail to other people is held” while the hold is on, or “Not asked (no hold)” for a workspace that was never held, whose mail goes out normally. Most tenants that existed before this shipped read “Not asked (no hold)”, except an unpaid self-serve one whose Owner never signed in after its first day. A tenant created from the console reads No until its Owner replaces the initial password at first sign-in, then Yes. Demo, engineering and Academy tenants are never held. Key Contacts’ “Email confirmed” column is per person: it reads ”—” for anyone never asked to confirm, so a workspace with no hold shows ”—” there too. There is no console action to clear the hold: only the Owner can, by following an emailed link. The Owner signs in and chooses Send the link again in the notice (once a minute, five times in 24 hours); mail held meanwhile is listed in the tenant’s own email log as Skipped, with the reason, and is never sent later. An Owner’s sign-in through the tenant’s identity provider does not clear it.

Send confirmation link (LMS-1705, super_admin and support_agent). An Owner who never signs in never sees that notice. While the hold waits on an emailed link, the row shows a “Send confirmation link” button, and “No link sent yet” when none ever went out (the tenants held when LMS-1622 shipped got no link). The button emails the Owner the short confirmation email with a fresh link, exactly as Send the link again does: the same limit (it takes one of the Owner’s five), no link to a disposable-mail address, and the earlier link stops working. It clears nothing by itself; the Owner still follows the link. Each send is audit-logged as owner_email_confirmation_sent with you as the actor. For many tenants at once, staff run infra/scripts/send-owner-confirmation-links.ts (dry run by default; runbook docs/runbooks/owner-confirmation-links.md). A tenant created from the console never shows the button: its hold clears at the Owner’s first password change.

Key Contacts (LMS-440 / LMS-773). The Overview tab’s Key Contacts section shows who to talk to about a tenant without signing in to it:

  • Administrators — every tenant user with the owner or admin role, with name, email (click to compose), whether the email is confirmed, last login, and active status. “Email confirmed” reads No for the Owner whose confirmation the tenant’s mail waits on (LMS-1622), Yes for a person whose address is proven, and a dash for a person nobody asked. Soft-deleted users are excluded. The list is read from the tenant schema live; if it is briefly unavailable the section shows an empty state rather than failing the page. This is tenant user data, so it is shown to super_admin and support_agent only — billing_admin sees the billing contact but not this list (LMS-775).
  • Billing contact — the invoice recipient (billing email) and PO number from the subscription record. When no billing email is set, invoices fall back to the earliest active owner/admin — the section says so instead of showing a blank.

Customer Health tab

The Health tab explains the R/A/G health dot shown on the tenant list — same inputs, same thresholds, never a second opinion. Four measures, each with its measured value and the rule it is judged against:

MeasureRule
Activity recency≤ 7 days healthy · 8–30 days needs attention · > 30 days (or never active) at risk — the only measure that can turn the signal red
Seat utilizationActive users (30d) over the seat cap → needs attention. Unlimited caps show “no impact”
Completion trendCompletions in the last 30 days more than 10% below the prior per-30d average (days 31–90) → needs attention
Academy onboarding (LMS-1070)After day 14, no Owner or Admin has completed the Administrator track in Embay Academy → needs attention. Never at risk. Not judged for tenants created before 2026-09-25, in a tenant’s first 14 days, or on the Academy tenant itself

This is deliberately a lightweight signal (PRD §6.3.1) — the weighted composite health score is future CS tooling, not the console. “No data yet” means the tenant has not had its first hourly metrics sweep.

Audit tab

Access: super_admin and support_agent. The tab does not appear for billing_admin, and ?tab=audit falls back to Overview for that role (LMS-775).

The Audit tab embeds the cross-tenant audit viewer pre-filtered to this tenant: filter by action or resource type, paginate, and Export CSV for the current page (SOC 2 evidence). Use Open in cross-tenant viewer for investigations that span tenants.

Feature Entitlements tab (super_admin for changes)

The tenant page’s Entitlements tab shows the tenant’s plan tier, seat/course/storage limits, API monthly cap, and each gated feature flag (SSO/SAML, SCIM, API access, custom branding, certificates, advanced automations) with its current On/Off state and whether entitlements are enforced for the tenant.

  • Per-flag overrides. A super_admin can toggle an individual flag on or off outside the tier default — e.g. enable SSO temporarily for a security review. Every override requires a reason, and the change is audit-logged (actor, before/after, reason).
  • Overrides persist until the tier changes — using Change plan tier resets the flags to the new tier’s defaults.
  • Tenants with entitlements not enforced (grandfathered) show all features available regardless of flags.

Subscription tab (super_admin, billing_admin)

The Subscription tab replaces the former “Manage subscription” side drawer. It shows a read-only Commercial Summary — plan · status, caps, trial end, billing cycle, current period start, next renewal, cancellation intent, scheduled plan/seat changes, billing email, PO number, and the Stripe customer/subscription ids (Stripe is the commercial source of truth, ADR-016) — beside the management form with the same four actions as before:

ActionEffect
Change plan tierResets caps and feature flags to the new tier’s defaults
Grant / extend trialSets the tier + trialing status for 1–90 days
Adjust limits & featuresOverride seat cap, storage cap, monthly API cap, or individual feature flags
Set billing stateactive / past_due for dunning — does not change tenant login status

Every action requires a reason and is audit-logged with before/after snapshots. Other platform roles see the commercial summary read-only.

Pay by purchase order

Below the management form, the Pay by purchase order card shows the tenant’s invoice-billing request — PO number, billing contact, terms requested, note, date — and the current arrangement (charge_automatically or send_invoice · Nd). A new request also lands on the platform bell (billing.invoice_billing_requested, billing_admin broadcast).

Action (billing_admin, super_admin)Effect
Approve with net 30 / 45 / 60Switches the Stripe subscription to collection_method: send_invoice with days_until_due = the terms, mirrors both on billing_subscriptions, emails the tenant’s billing contact
Decline (pending request)Records the decline; collection stays on card; emails the contact with your note
Revoke — back to card (approved arrangement)Switches Stripe back to charge_automatically; emails the contact

Every decision needs a reason (audit) and an optional note (sent to the tenant). If Stripe refuses the collection-method change, nothing is recorded — the mirror is never allowed to disagree with Stripe. A tenant with no Stripe subscription yet (Free) is mirrored locally only; the card says so. Dunning for an invoice-billed tenant uses the net terms as the grace period instead of the 14-day card-retry window.

Negotiated e-commerce platform fee

Access: all platform roles can read the panel. Recording and ending a rate is billing_admin and super_admin only.

The platform fee is the share EmbayLMS keeps on a tenant’s own course sales through Stripe Connect. Every tenant starts on the rate of its plan tier. When a customer negotiates a different rate, record it on the tenant. The Subscription tab’s E-commerce platform fee panel shows the rate in force today, where it comes from, and the history, newest first.

The rate for a sale is resolved in this order (packages/api/src/lib/ecommerce-fee.ts):

OrderSourceShown in the panel as
1The tenant’s negotiated term, if one is active and today is inside its windownegotiated term
2The per-tier override set on the Settings pagetier override (Platform → Settings)
3The code default for the tier: Free 10%, Starter 8%, Growth 5%, Enterprise 3%tier default
48% when the tier is unknownfallback (tier unknown)

Because step 1 wins, a tier change never moves a negotiated rate, and neither does an edit to the per-tier table.

To record a negotiated rate:

  1. Open the tenant, then the Subscription tab, and find the E-commerce platform fee panel.
  2. Click Record a negotiated rate.
  3. Fill in the form:
FieldRequiredDescription
Rate (% of net sale)Yes0 to 50, up to two decimals (for example 2.5)
StartsYesFirst day the rate applies. A future date does not apply early
Ends (blank = until replaced)NoMust be after the start. The rate stops applying the moment this date passes
Authorising HubSpot dealOne of these twoThe id of the deal that authorises the rate
…or why there is no dealOne of these twoAt least 10 characters. Fill in one or the other, never both
What was agreedYesThe agreement in words. Audit-logged
  1. Click Record rate. The next sale is charged at the new rate. There is nothing to create in Stripe: the platform sets the fee on every checkout.
ActionHowEffect
RecordSteps aboveCreates an active term
SupersedeRecord a new rate while one is activeIn one write, the old term becomes superseded and the new one becomes active. The old row stays in the history
RevokeClick End early on the active term and give a reasonThe term becomes revoked. The next sale falls back to the tier rate

Provenance is mandatory: a term is refused without a reason, and without either the authorising deal or the reason there is none. A term that reaches its end date is stamped expired by the nightly sweep. A rate cannot be recorded for a demo, sandbox or Academy tenant.

Every write is audit-logged with before and after values: ecommerce_fee_term_recorded and ecommerce_fee_term_revoked on the tenant, ecommerce_fee_tier_set and ecommerce_fee_tier_reset for the per-tier table. Each order also stores the rate it was charged and its source.

The per-tier table is on the Settings page (/platform/settings), in the E-commerce take-rate card. Only a super_admin can change a tier rate (Save) or return it to the code default (Reset); other roles see it read-only. Its Negotiated column lists the tenants on a negotiated rate, so you know who a tier change will not affect.

The tenant sees its effective rate, read-only, on its own Billing page. It never sees the reason, the deal or the history. Operator detail: docs/runbooks/negotiated-terms.md §7.

Live from Stripe

Below the summary, the tab reads live from Stripe (the commercial source of truth):

  • MRR — normalized monthly figure (unit amount × billed quantity, annual prices ÷ 12; same formula as the HubSpot CRM mirror), with the per-user rate shown underneath
  • Last payment — amount and date of the most recent paid invoice
  • Subscription — live status, renewal date, cycle, and a “cancelling” marker when cancel-at-period-end is set
  • Default card — brand, last four, expiry
  • Recent invoices — up to 12, with status, amount, and a link to the Stripe-hosted PDF

The Billed Usage card shows the LMS-side numbers the pushed billed quantity derives from: active users in the current billing period (the actual Stripe period, not the calendar month) and licensed users, next to the quantity currently on the Stripe subscription item. A gap between active users and the Stripe quantity is normal mid-period — it closes at the next invoice.upcoming push or daily backstop sweep.

Subscription History (below the two widgets) tables every change event on the subscription with its date: creation, quantity adjustments, plan/price changes, cancellation scheduled or removed, status transitions, and renewals — read from the Stripe customer.subscription.* events feed. Stripe’s events API retains roughly 30 days; the subscription’s original creation (and cancellation) dates are still shown as anchor rows read from the subscription record itself.

When “Live from Stripe” shows Unavailable: the tenant has no Stripe customer yet (typical for Free tenants) or Stripe could not be reached. Nothing is wrong with the page — the commercial summary above still shows the last webhook-reconciled state.

Branding tab (every platform role reads; super_admin sets the set)

Shows the tenant’s image settings: its Photograph set (the sector pack its sign-in page, catalog banner, learner home and empty states start from), whether platform defaults are on, and what each of the seven image slots shows today (the default, a library photograph, the tenant’s own upload with its malware-scan status, or the brand colour). A super_admin can change the photograph set with Save set; the change is audit-logged as tenant_image_pack_set and keeps every slot the tenant chose. Everything else is the tenant’s own, edited in Settings → Branding → Images (see Branding Images).

While TENANT_IMAGES_ENABLED is off on the deployment, the tab says so: only the legacy Pages-tab images render, and a saved pack takes effect when the flag is switched on.

Data Export tab (super_admin only)

The Data Export tab produces a full export of a tenant’s data (users, courses, enrollment/completion records) — for contract-end offboarding or a support investigation (§6.3.1).

Since LMS-1302 a tenant’s Owner can start the same export from Settings → Data Management → Export, with content files as an option; it is the same job and shows in this tab too. Only one export of a tenant runs at a time, whoever starts it, so a staff export waits for an Owner’s running one (and the other way round).

  1. Click Export tenant data. A job is queued and an audit entry (tenant_export_requested) records who requested it.
  2. The worker gathers the data, writes a JSON document to the exports bucket, and emails you when it’s ready.
  3. Click Refresh to update the list, then Download on a completed job. The link is a short-lived presigned URL (≤15 minutes, CLAUDE.md §4.4); each download is audit-logged (tenant_export_downloaded). Re-click to get a fresh link after it expires.
StateMeaning
queued / runningThe export is in progress.
completedReady — a Download button appears (shows file size).
failedSomething went wrong (reason shown), e.g. exports storage not configured.

Signing in to a Tenant (super_admin only)

A super_admin can sign in to any active tenant as a full administrator without waiting for a customer access request. On the tenant detail page click Log in to tenant.

  1. The action records an audit entry (platform_tenant_login) tying your platform identity to the target tenant — this is the trace of which super_admin entered which tenant and when.
  2. You are redirected to the tenant (e.g. acme.embaylms.com) and signed in as a synthetic platform-support administrator. A navy banner across the top reads “You are signed in to {tenant} as Embay platform support”.
  3. You have the full tenant-admin permission set — you can do anything a tenant admin can.
  4. Click Return to platform in the banner to sign out of the tenant and go back to the platform console (your platform session is preserved).
PropertyDetail
Whosuper_admin only. Support agents use consent-based access (future) instead.
Tenant visibilityYou do not appear in the tenant’s user table — the platform-support session has no tenant user record.
AttributionActions inside the tenant are audit-logged with your platform user id as the actor.
AvailabilityOnly active tenants — reactivate a suspended tenant first.
Exit”Return to platform”, or simply signing out of the tenant.

This is distinct from user impersonation (logging in as a specific tenant user); platform-support login acts as a generic tenant administrator.

What the website signup refuses

The signup form on embaylms.com creates a tenant with nobody at Embay involved, so it turns some requests away by itself. The visitor reads a message in the form. Nothing is created, and no notification is raised.

The visitor readsWhyIn the application logWhat you can do
”Temporary or disposable email addresses cannot be used to create a workspace. Use a work or personal address where you can receive mail.”The Owner’s address is on a disposable-mail domain, or on a subdomain of one (LMS-1620). Capital letters make no differencesignup.disposable_email, with the listed domain and never the addressAsk the person to sign up again with a work or personal address they keep. If the domain is a real mail provider listed by mistake, create the tenant for them (next section) and tell engineering, who add the domain to the allow list
”This email address already has a workspace. Sign in to that workspace, or write to us at support@embaylms.com.”The address already owns a workspace that was opened on the website and has never paid: a Free one, or one still in its trial (LMS-1621). Capital letters, a +tag and a dot after the domain make no difference (ada+test@acme.com is ada@acme.com); dots inside the name dosignup.workspace_exists, with the id of the existing tenant and never the addressAsk the person which workspace they opened, or ask engineering to match the id in the log to its tenant, and help them sign in to it. For a fresh start, delete the old tenant permanently: the address is free once that is done. To give them a second workspace as well, create it from the console

What counts as a workspace the address already has:

  • It was opened on the website. A tenant you created from the console never counts, and neither does a demo, sandbox, engineering or Academy tenant.
  • It has never paid an invoice above CA$0. The Free plan’s CA$0 invoices are not payments. A paying customer can open another workspace on the website.
  • It still exists. A suspended tenant counts, and so does a soft-deleted one, until it is deleted permanently. Suspending or soft deleting an abusive workspace therefore does not free its address.

The form does not name the existing workspace: whoever is typing may not be its Owner.

Where the list comes from: a public-domain list of about 10,000 disposable-mail domains, kept in the repository at a recorded version, plus the domains we add ourselves. The address is checked after the security challenge and before anything is created, so a refused signup leaves no tenant, no Stripe customer and no HubSpot record.

The recorded version is refreshed once a month (LMS-1628). On the 2nd, a scheduled job compares our copy with the public list and, when domains were added or removed, opens a pull request for engineering that states the version before and after and how many domains changed. Nothing reaches the website until a person has merged it, so a domain that appeared on the public list this week can still pass the signup for a few weeks. If such a domain is being abused now, tell engineering: they add it to our own list the same day, without waiting for the refresh.

A tenant you create from the console is not checked against the list: you vouch for its Owner.

Creating a Tenant (super_admin only)

Use this for a customer who did not sign up on the website, for example an Enterprise prospect (self-serve signup refuses Enterprise). The tenant is created the same way a website signup creates it, with its Owner, so it is ready to hand over (LMS-1415). The Owner’s address is not checked against the disposable-mail list the website uses (LMS-1620).

  1. Click New Tenant
  2. Fill in the form:
FieldRequiredDescription
Display NameYesHuman-readable name (e.g. “Acme Corp”). Also the HubSpot company and Stripe customer name
Subdomain SlugYesLowercase, alphanumeric + hyphens. Becomes {slug}.embaylms.com
PlanYesFree, Starter, Growth or Enterprise. Sets the entitlements from the first request
Trial endsPaid plansThe last day of the trial (the trial ends at 23:59:59 UTC that day). Defaults to 30 days from today, like signup. Any day from today to 365 days out. Tick “No trial: active now” for a tenant that starts active. Free never trials
HubSpot dealNo (paid plans only)The deal sales already opened for this customer: its record ID, or the deal’s URL pasted from HubSpot. The tenant is linked to that deal instead of getting a new one. Leave empty to create a new deal, as signup does. See Linking the sales deal
Custom DomainNoe.g. learn.acme.com
Owner: first name, last name, emailYes (not for a demo)The person who will own the tenant. They become its Owner
Owner: languageYes (not for a demo)English or Français (Canada). The Owner’s language, and also the tenant’s default language
Owner: initial passwordYes (not for a demo)At least 12 characters. Type one or click Generate. It must not appear in a known data breach
Create as a demo tenantNoThe tenant’s kind is chosen at creation and cannot be toggled later (LMS-812). Demo tenants unlock the seeded demo content set, have no Owner and can never carry a paid subscription (ADR-021 billing guardrail)
  1. Click Create Tenant

For a customer tenant the system, in one step:

  • creates the tenant and its subscription row on the chosen plan: trialing until the trial end on a paid plan with a trial, otherwise active
  • sets the tenant default language to the Owner’s language
  • creates the embaylms_tenant_{slug} schema from the template and the Owner account. If the template cannot be cloned, a worker job finishes it within a few minutes
  • creates the Stripe customer. A Free tenant also gets its $0 subscription; a paid plan gets its Stripe subscription when it converts, as with signup (ADR-016)
  • creates or finds the HubSpot contact and company. For a paid plan it links the HubSpot deal you named, or creates a deal when you named none. The Owner is linked to the company as an ordinary contact, not as its billing contact: set the billing contact in HubSpot yourself if it is someone else. A paid tenant with no trial has its deal moved past the trial stage by the next entitlement sync
  • writes three audit entries: tenant_created (as soon as the tenant exists, before anything else), subscription_created (plan, status, trial end) and owner_created, or owner_creation_queued when the Owner is still being provisioned (no name, email or password in any of them)

The dialog then shows the sign-in address, the Owner’s email and the initial password with a Copy button. This is the only time the password is shown: it is stored as a hash and never emailed. Send the address and the password to the Owner yourself. At their first sign-in they must choose a new password before anything else.

The Owner receives an activation email in their language as soon as their account exists (right away, or when provisioning finishes if it fell back to the worker). It names the workspace, the sign-in address and the email address to sign in with, says that the temporary password comes from their Embay contact, and gives the trial end date on a trial. It never contains the password. The dialog tells you whether it was sent.

Owner activation (super_admin only)

On the tenant’s Overview tab, the Owner activation panel shows whether the Owner is still waiting for their first sign-in and when the activation email was last sent. Resend activation sends it again, for example when the Owner cannot find it. Resending is refused once the Owner has chosen their own password, and before their account exists. If the Owner’s address is on the email suppression list (after an earlier bounce or complaint), nothing is sent and the panel says so: confirm the address with the customer. Every send is recorded in the audit log as owner_activation_sent. The panel appears only for tenants created from this dialog with an Owner.

Self-serve signups: the welcome email

A customer who signs up on the website is signed in right away, and also receives a welcome email in the language they signed up in. It names the workspace and its address, the email address to sign in with, the plan and the trial end date on a trial, and points to the setup list on their Home page and its Embay Academy courses. It never contains a password: they chose their own. It is sent once per tenant, after their account exists (or when provisioning finishes if it fell back to the worker), and recorded in the audit log as signup_welcome_sent. If that attempt fails, the provisioning sweep tries again every 5 minutes for 24 hours until the entry exists. A tenant created from the Create Tenant dialog gets the activation email instead, never both. Nothing here is configurable.

Linking the sales deal

A sales-led prospect usually has an open HubSpot deal that sales created by hand. That deal does not name the tenant, so without the HubSpot deal field the system cannot find it and creates a second deal (LMS-1418). Name it instead:

  1. In HubSpot, open the deal and copy its URL (it contains /record/0-3/ followed by the ID), or copy the record ID alone.
  2. Paste it into the HubSpot deal field before you click Create Tenant.

Before anything is created, the deal is checked. The tenant is not created, and the dialog says why, when:

MessageCauseWhat to do
HubSpot deal ID must be the deal’s numeric record IDThe value is not a deal ID or a deal URL (a company or contact URL, for example)Copy the URL from the deal itself
HubSpot has no deal …The ID does not exist, or the deal was deletedCheck the ID in HubSpot
HubSpot deal … is closedThe deal is closed won or closed lostLink the open deal, or ask sales to reopen it
HubSpot deal … already belongs to tenant …The deal’s EmbayLMS tenant slug property names another tenantUse that tenant, or ask sales which deal is right
HubSpot deal … is already linked to tenant …Another tenant’s subscription already holds this dealAs above
A Free tenant has no HubSpot dealYou chose FreeChoose a paid plan, or leave the field empty
HubSpot is not configured, so the deal cannot be checkedHUBSPOT_API_KEY is not set in this environmentLeave the field empty
HubSpot could not be reached to check the dealHubSpot returned an errorTry again in a minute

Once the tenant is created, the deal is linked to it: its EmbayLMS tenant slug and plan properties are set, it is associated with the Owner’s contact and the company, and the subscription stores its ID. The entitlement sync then runs straight away, and from then on the deal is mirrored like any tenant’s deal: its name, stage, plan, seat cap, trial end and amount follow the subscription, so the deal name becomes “{Display Name} — EmbayLMS {plan}” and the stage follows the subscription (trialing = qualified to buy, active = closed won). Every sync also re-checks that the deal is associated with the company, so an association HubSpot refused at creation is retried until it lands. If HubSpot fails during creation, the tenant is still created with the deal ID stored, and the sync retries against that same deal; it never creates a second one.

A deal belongs to one tenant at most. If two people create tenants with the same deal at the same moment, the second create is refused and leaves no tenant behind.

An Enterprise trial converts through sales: record the agreed terms (docs/runbooks/negotiated-terms.md), there is no self-serve Enterprise checkout.

A demo tenant keeps the earlier behaviour: the tenant record (status: provisioning) and a queued worker job that creates the schema and registers {slug}.embaylms.com in Vercel, with no Owner and no subscription.

If provisioning could not finish in the request, the worker’s reconcile sweep finishes it from the saved provisioning intent within about five minutes: it creates the Owner (with the forced password change), activates the tenant and clears the stored password hash. If the tenant stays in provisioning, check that the worker and Redis are running; the sweep resumes on its own once they are.

For a demo tenant only, the schema can be built by hand when Redis is unavailable:

pnpm tsx infra/scripts/provision-tenant.ts --tenant {slug}

Do not use this script for a customer tenant: it builds the schema but does not create the Owner, so the customer could not sign in.

Suspending a Tenant (super_admin only)

Click Suspend. Sets status: suspended — all logins at {slug}.embaylms.com are blocked. No data is deleted. The Owner’s address still cannot open another unpaid workspace on the website (LMS-1621).

Activating a Tenant (super_admin only)

Click Activate on a suspended tenant to restore access.

Deleting a Tenant (super_admin only)

Deletion is two steps, and both are audit-logged.

  1. Soft delete: Hides the tenant from the list, sets it to suspended and signs its users out. Nothing is purged, and Restore brings it back. Soft delete also stops new background work for the tenant (lifecycle email evaluation and dispatch skip a deleted tenant).
  2. Permanent delete: Shown as “Delete permanently” on a soft-deleted tenant, and enabled one hour after the soft delete so work that started before it can finish; until then the row shows “Available at” with the time. Type the tenant slug to confirm. This removes the tenant’s global rows, drops its embaylms_tenant_{slug} schema and schedules the deletion of its files (below). It cannot be undone. Audit log entries are kept.

Permanent delete is refused, with a message, when:

MessageCauseWhat to do
Soft-delete this tenant firstThe tenant was never soft-deletedSoft-delete it, then wait one hour
Soft-deleted less than an hour agoThe one-hour quiet period has not passedRetry at the time shown in the row
Jobs in progress (demo seed, report export or data export)A worker is still running a job for the tenantWait for the job to finish. A job whose worker died shows as Abandoned under Unfinished jobs on the tenant’s Overview tab: mark it failed there, then delete again
No longer eligible for permanent deletionThe tenant was restored while the delete was startingReload the list; delete again only if it should still go
Tenant deletion failedAny other teardown error; the tenant is left untouchedRead the tenant_hard_delete_failed audit entry for the cause

Export the tenant’s data first if you need it: the data export stays available on a soft-deleted tenant.

File purge after a permanent delete

A permanent delete also deletes every file the tenant stored: course content and SCORM packages, media, uploads, quiz and message attachments, branding, fonts, badges, and its data and report exports. The deletion runs in the background, so the delete itself returns at once. Follow it on the Tenants list with Show deleted on, in the File purges after permanent delete panel:

StatusMeaning
QueuedWaiting for the worker, or for the final pass: the first pass runs at once, and the purge is only marked done by a pass that starts 30 minutes or more after the delete, so a file written by work still finishing at the time of the delete is caught too. Picked up within the hour
PurgingThe worker is deleting files; the object count grows as it goes
PurgedEvery file is deleted. The audit log holds a purged entry (resource tenant_content.s3) for every batch of up to 1,000 files as it was deleted, and a final one with the total
FailedThe note says why. The purge is retried every hour and resumes where it stopped, up to 10 attempts; after that the note says retries stopped and a person re-queues it (runbook tenant-content-purge.md §4)

While a purge is unfinished, the deleted tenant’s slug stays reserved: a new tenant cannot be created with it (Create tenant answers that it is still being purged, and self-serve signup reports the name as taken). Two refusals need a person: a storage bucket is not configured for the worker, or a tenant created before this reservation existed holds the deleted tenant’s slug. In the second case the purge deletes everything it safely can and leaves only the folders it shares with the new tenant. The panel lists the 50 most recent purges per page. The storage keeps deleted files as old versions for up to 35 days, then removes them.

Unfinished jobs (super_admin only)

A demo seed, report export or data export that a worker started and never finished stays running for good when its worker dies. It blocks a permanent delete, and a stuck demo seed also blocks the next seed (as does a seed left queued whose job never reached the queue). When a tenant has an unfinished job, its Overview tab shows an Unfinished jobs panel (open the tenant from its name in the list; this works for a soft-deleted tenant too).

Each job shows what the job queue says about it:

BadgeMeaningWhat you can do
RunningA worker holds the job or will pick it upWait. It cannot be marked failed
AbandonedNo worker holds it; it will never finish on its ownMark failed. The row becomes failed with a note that an operator cleared it
UnknownThe job queue cannot confirm the job’s state (queue unreachable, or the job lost its worker’s lock while possibly still running)Try again shortly

A worker that died reads as Running until a running worker reclaims the job: about a minute for exports, up to 15 minutes for a demo seed, and only once a worker process is up. Mark failed refuses anything the queue still holds, and anything that started less than 30 minutes ago, so it cannot clear a job that is really working. Every Mark failed is recorded in the audit log as tenant_job_marked_failed.

A demo seed cut short by a worker restart usually needs nothing from you: the worker marks it failed as it shuts down (“Interrupted by a worker restart”), or, if it died without warning, when the job comes back to a worker about 15 minutes later. The seed is never re-run on its own, so seed the tenant again from its Demo tab. If the Demo tab shows a run as Abandoned, it has a Mark failed button of its own, with the same rules and audit entry as the Unfinished jobs panel (LMS-1532).


AI Credits

Every tenant has a monthly pool of AI credits set by its plan: Free 60; Starter 300 + 10 per active user; Growth 1,000 + 25; Enterprise 5,000 + 50 (TIER_DEFINITIONS.aiCredits, PRD §7.5). 1 credit = 1 page (3,000 characters) of source text. The tenant’s Subscription tab shows a read-only AI credits ledger: every credit beyond the plan, each row the Stripe invoice line that created it (a pack bought from Billing, one period of a monthly add-on, a grant at CA$0), with its invoice link and provenance.

There is no cap field and no grant form. To give a tenant credits, add one of the AI credit prices to its Stripe customer — a one-off invoice item for a pack, or a subscription item for a monthly add-on — with a coupon of 0–100 % named after the deal (deal-4471-ai-100pct), exactly as the negotiated-terms runbook does for price concessions. When the invoice is paid (a CA$0 invoice is paid at once), the invoice.paid reconcile writes the ledger row and the credits are live. Once the deal pipeline ships (LMS-1361), the same lines are applied from a Deals inbox after review by a super_admin or billing_admin.

The platform bell rings when a tenant crosses 75 %, 90 % or 100 % of its month’s credits, and when an author asks for more; both are expansion conversations.

Demo Tenants

Access: super_admin only for all demo actions.

A demo tenant is a tenant created with the demo kind (see the Create Tenant form above — the kind is fixed at creation, not toggled later). Demo tenants exist to carry the seeded “Northpoint Manufacturing” demo content set (ADR-021) for sales demos and evaluation, and are barred from paid subscriptions by the billing guardrail.

Demo Seed panel

The tenant detail page of a demo tenant shows a Demo Seed panel:

  • Seed / Reseed queues a demo-seed job on the worker. Reseeding is destructive — it wipes the tenant’s content (the audit log is preserved) and re-applies the fixture set deterministically. The panel warns before queueing.
  • Job status — the panel polls the current job (queued → running → step-by-step progress → done/failed) and shows the last job’s outcome. Failures surface an operator-safe error message.
  • Seeded demo users share one password (DEMO_SEED_PASSWORD on the worker; fixture default when unset — see CLAUDE.md §13.2).

Operational details, prerequisites (worker S3 write access) and troubleshooting: docs/runbooks/demo-tenant-seeding.md. Coverage decisions (what the seed does and does not demonstrate) are tracked in the seed manifest (packages/api/src/lib/demo-seed/manifest.ts, ADR-021).


Embay Academy

Embay Academy is Embay’s own training portal for customers’ staff. The console covers three things: the Academy tenant itself, publishing its curriculum, and seeing how customers use it.

The platform Academy tenant

Access: created by an operator script, not from the console. All platform roles see it in the tenant list.

The Academy runs in one tenant at academy.embaylms.com. It is its own tenant kind, next to customer and demo tenants, marked by the is_platform_academy flag.

PropertyDetail
One onlyThe database allows a single tenant with the flag, and the provisioning script refuses to run a second time
How it is createdinfra/scripts/provision-platform-academy.ts, run once by an operator. It is a dry run by default; add --execute to create the tenant. The academy slug is reserved, so signup and the New Tenant form both refuse it. Runbook: docs/runbooks/platform-academy.md
Never billedIt has no subscription record. The console’s subscription actions, signup and the Stripe webhook all refuse to attach one, and a negotiated fee cannot be recorded for it
All features onIt resolves to the full entitlement without a plan
Not a customerThe lifecycle engine, the Stripe orphan sweep, signup repair and the billing metrics endpoint skip it. It cannot be flagged as a demo tenant
In the tenant listThe Status column shows an Academy badge beside the tenant’s status
TabsIt has a Curriculum tab (super_admin only) and no Academy tab
RegistrationOpen to outside people such as consultants and partners, with email verification and CAPTCHA on. Customers’ staff arrive from their own portal instead

A customer that runs its own academy is an ordinary billed tenant. The flag is for Embay’s Academy only.

Importing the Academy curriculum

Access: super_admin only. The tab exists only on the platform Academy tenant.

The curriculum is written in the repository under content/academy/: the tracks in academy.yaml, one folder per course under courses/, one per exam under exams/. The importer publishes it into the Academy tenant. Nothing is edited in the Academy’s own admin screens.

Run it once after the tenant is created, and again each time a merged change touches content/academy/:

  1. In the console sidebar, click Tenants and open the tenant with the Academy badge.
  2. Open the Curriculum tab.
  3. Click Import curriculum. The button reads Import in progress… until the run ends, and a second import cannot start while one is queued or running.
  4. The worker runs the import. The panel updates every 4 seconds while it runs; click Refresh to update it by hand.
  5. Read the result line: the status (queued, running, succeeded or failed), the request and finish times, and the created / updated / unchanged totals. Below it, each course key is listed with its version number and outcome.
OutcomeMeaning
createdThe course did not exist and was published
updatedThe course changed. A new version was published and its learners moved onto it with their progress
unchangedNothing to do

The import never deletes anything, so it is safe to run twice and has no confirmation step. The Academy tenant must be active. Each request is audit-logged (academy_import_requested).

SymptomCauseFix
”Import could not be queued. Please try again.”The worker queue (Redis) could not be reachedCheck the worker and REDIS_URL, then click Import curriculum again
Status failed with “The curriculum failed validation” and a list of errorsA curriculum file is invalidFix the file in content/academy/, merge, and import again. pnpm tsx infra/scripts/import-academy.ts --check validates the files without touching a database
Status failed with “The import failed; see the worker log”The run stopped for another reasonFind academy_import.failed in the worker log, fix the cause, and import again. A failed import is never retried automatically

The same import can be run without the console: pnpm tsx infra/scripts/import-academy.ts.

Academy adoption

Access: all platform roles. Named people are shown to super_admin and support_agent only. A billing_admin sees counts, never names.

There are two views. Both are read-only.

Across all customers: click Academy in the console sidebar (/platform/academy). The page shows tenant names and counts only, never a person.

SectionWhat it shows
Fleet funnelTotals across customers: eligible staff, entered, in progress, track completed, certified, each as a share of eligible staff
Customers by Administrator onboardingOne row per customer that has eligible staff, with a milestone badge (Admin track done, Entered, not done or Not entered), the eligible, entered and track-completed counts, the date the Administrator track was completed, and the last activity. The tenant name opens that tenant’s Academy tab
Courses — completion and drop-offPer Academy course: enrolled, completed, completion rate, and the lesson where most people stop
Certification examsPer exam: attempts, passed attempts, pass rate, people, people certified
Most-missed questionsThe exam questions most often answered wrong, with the miss rate. Use it to find unclear lessons or questions

The customer rows come from the hourly metrics rollup (the line above the table says when it last synced). The course, exam and question sections are read from the Academy tenant. If the Academy tenant does not exist yet, the page says so and shows no course data.

For one customer: open the tenant and click its Academy tab (/platform/tenants/{slug}?tab=academy).

SectionWhat it showsWho sees it
Adoption funnelEligible staff, entered, in progress, track completed, certifiedAll roles
Administrator onboardingDone, with the date and the number of days after the tenant was created, or Not yet. The milestone is an Owner or Admin completing the Administrator trackAll roles
TracksPer track: enrolled, completed, median days to complete, exam average, pass rate, active certifications, certifications expiring within 30 daysAll roles
PeopleEach staff member who entered the Academy: name, role, tracks, progress, last activity, certification, expiry, best score, attemptssuper_admin and support_agent only

For a billing_admin the People table is left out by the server, not just hidden on the page. The line at the bottom of the tab says how fresh the progress data is: it is refreshed on every lesson and hourly.

The Overview tab also has a small Academy card (entered out of eligible, the Administrator track date, active certifications), and the Health tab has the Academy onboarding measure.

“Eligible staff” means active users whose role comes with an Academy track: Owner, Admin, E-commerce Admin, Group Admin, Manager, Instructor, and any custom role that can manage users. Learners are not counted. Three of these adoption figures are also mirrored to HubSpot: see the HubSpot CRM mirror guide.

Release films

Access: super_admin and support_agent. A billing_admin does not see the block.

When a release is announced (ADR-033), eligible staff get a short film on the Academy and a New badge on the feature. The Releases block counts what happened to the film. It never names anyone.

Across all customers: Releases sits under the Fleet funnel on /platform/academy. It has one row per release in the registry (content/academy/releases.yaml), newest first.

For one customer: the same block sits under Adoption funnel on the tenant’s Academy tab, with that customer’s numbers only.

ColumnWhat it shows
ReleaseThe release title. On the fleet view, its key appears below the title
Visible fromFleet view only. The day the release went visible, which is the day its switches were turned on in production
WindowOpen · N days left during the 14 days the film and the badge run, Closed with the end date after that, or Upcoming before the release goes visible
EligibleStaff who have an Academy track and can reach at least one feature of the release: they hold the feature’s permission and the plan includes it
ShownEligible staff the film opened for, on its own or from What’s new, who then closed it or watched it
WatchedEligible staff who played the film to 90 %
DismissedEligible staff who chose Watch later or closed the film before 90 %, and have not watched it since. Watched + Dismissed = Shown
Watched of eligibleFleet view only. Watched as a share of eligible

How the numbers are made:

  1. The hourly metrics sweep counts each customer tenant at :15 past the hour. Demo tenants, sandboxes and the Academy tenant are left out.
  2. It writes one row per tenant and release to tenant_release_metrics. The row holds counts only.
  3. The fleet view adds up all the tenants. The text above the table says when the last count ran.
  4. An upcoming release has no counts until it goes visible.

Eligible is counted from staff and roles as they are now. If someone watched the film and later lost the role, they are no longer counted.

Troubleshooting

SymptomCauseFix
The Releases block is missingYou are signed in as billing_adminAsk a super_admin or support_agent
A visible release shows — in every columnThe hourly sweep has not counted it yet, or it failed for that tenantWait for the next run at :15. If it still shows —, look in the worker log for tenant_metrics.release_counts_failed
Eligible is 0 for a customer that uses the featureTheir plan does not include the feature, or none of their staff holds its permissionCheck the plan on the Subscription tab and the staff roles
No release has been announced yet.releases.yaml has no entryNothing to fix. The first release adds the first row

Academy content health

Access: all platform roles can read. Only super_admin can dismiss a flag.

After every production release, the worker checks what changed under the Academy’s lessons: a doc section a lesson cites, a screen it shows, a button label it names, or a walkthrough that failed its weekly check. Each change it finds becomes a review flag on the lesson, check question, exam question or walkthrough. This page is where Embay staff see those flags. It is the inventory and the triage: approving an update means merging its pull request, never a button on this page.

To open it: click Academy in the console sidebar, then Content health (/platform/academy/content-health).

SectionWhat it shows
TracksPer track: its state, how many lessons are in review, have a draft pull request, are merged and waiting for a release, or have had an update published, and its open flags. The track name filters the flag list to it
Courses with flagsThe same counts per course, for courses with an open flag or a published update. The course name filters the flag list to it and shows its lessons
Lessons in courseShown when the list is filtered to one course: every lesson of the released course in course order, with its state, its open flags and its published updates, then any flagged key the course no longer has (an exam’s questions, a removed lesson)
FlagsOne row per flag, newest first: the lesson, the signal, the severity, the state, the release that raised it, and Show evidence

States: a lesson, course or track shows the furthest-behind state of its open flags, or Published when nothing is open and an update has been released:

StateMeaning
CurrentNo open flag
ReviewA flag is waiting for a person
Draft PRAn update is drafted in the open “Academy updates” pull request
Merged, awaiting releaseThe update is merged and publishes with the next release
PublishedNo open flag, and an update for it has been released

Evidence. Show evidence lists what the signal found: the doc sections it matched, the pull requests and files behind the change, the walkthrough scenes, the label that changed (old and new text), or the walkthrough check’s failures with a link to the run. Severity is counted from the kind of evidence (a removed doc or a failed walkthrough check is high); there is no model score anywhere on the page.

To dismiss a flag: you need the super_admin role.

  1. Filter the list to the flag, then open Show evidence to read what changed.
  2. Click Dismiss on its row.
  3. Write why the lesson does not need a change (at least 3 characters), then click Dismiss flag.

The flag is kept, with your reason, and the dismissal is written to the audit log (review_flag_dismissed). Only a flag in Review or Draft PR can be dismissed; a merged change is past triage.

Draft again: the drafting agent runs once a day, after a release, and drafts every lesson with a flag waiting into the rolling “Academy updates” pull request. A super_admin can ask for the day’s run now with Draft again. It shares the same once-a-day run: after it (or after the day’s automatic run), the page says the day’s run has gone and the button returns at 00:00 UTC. While the agent is switched off, the note says so and flags stay in Review until someone updates the lesson or dismisses the flag.

When the “Academy updates” pull request no longer rebases onto main (someone edited the same lessons on main), the day’s run drafts nothing. It says so once per main commit: a comment on the pull request naming the conflicting files and the date the block started, and the notification “Academy updates branch is blocked” (bell and Slack). This page shows the same in a “Blocked” panel above the drafting note, with links to the pull request and the runbook, and does not offer Draft again while it lasts. Flags stay where they are until the branch is rebased by hand, following the runbook docs/runbooks/academy-living-loop.md (“The rolling branch is blocked”), or the pull request is closed and the branch deleted; the panel goes away after the next run (LMS-1779). If the page cannot read the branch’s state, it says so in one line instead.

The agent’s answer: once the drafting agent has looked at a flag, a line under its state says what it did: Draft in PR #… (a link to the rolling “Academy updates” pull request), Agent: no change needed, or Draft failed, retried next run. Show evidence then carries the agent’s reason. A no change answer never closes the flag: it stays in Review for you to dismiss, with your own reason, or to edit the lesson.

Screen changes are re-recorded: a walkthrough flag means a release changed a screen the recording shows, so the video is recorded again whatever the agent says about the text. Each day’s drafting run asks for up to 10 such recordings; a super_admin can ask for one now with Re-record on the flag (it does not use the day’s drafting run and works with the agent off). A recording takes about 20 minutes and lands on the “Academy updates” pull request; the line under the flag then reads Re-recorded in PR #… and the flag moves to Draft PR. If the new recording comes out identical, the line reads Re-recorded: identical to the published video and the flag stays in Review for you to dismiss. Recording failed means the next day’s run tries again, up to three times; after that use Re-record once the cause is fixed. You get a notification when your Re-record request has started, or why not.

Filters. Lesson contains (part of a lesson key, such as enroll or admin-content/), Track, Course, State (Open by default, or one state, or All), Signal, Type (lesson text, check question or walkthrough video), Latest answer (No change needed, or Not answered yet) and Severity. Latest answer is the answer the row shows, the drafting agent’s or the recorder’s: a flag whose new recording landed in the Academy updates PR is not “no change needed”, even when the agent said so about the text first. The filters are in the address, so a filtered list can be shared as a link.

Sorting: click a column heading (Lesson, Signal, Severity, State, Release) to sort by it; click it again to reverse. Severity sorts low to high and state from Review to Dismissed, not alphabetically. Without a choice the list is newest first.

Acting on everything a filter matches (super_admin): above the list, two buttons act on all the flags the current filters match, on every page, after a confirmation:

ButtonWhat it does
Re-record N lessonsRecords again every lesson with an open walkthrough flag in the filter, at most 20 a click (each is a recording of about 20 minutes). Narrated films are never included. Audit: academy_rerecord_bulk_requested.
Dismiss N flagsDismisses every open, not-yet-merged flag in the filter with one reason, at most 500 a click. Audit: review_flags_bulk_dismissed, plus the reason kept on each flag.

For example, to clear what needs no change: set Latest answer to No change needed, check a few reasons under Show evidence, then Dismiss N flags. To record every changed screen of one course: pick the course, set Type to walkthrough video, then Re-record N lessons.

Troubleshooting

What you seeWhyWhat to do
”The Academy tenant has not been provisioned yet.”There is no Academy tenantProvision it (see above)
“…has not received the review-flag migration yet”The tenant migration has not run on the Academy tenantWait for the next deploy, which runs the tenant migrations
A flag names a course the Academy has not importedThe curriculum changed after the last importImport the curriculum, or wait for the automatic import after the next release
A flag keyed check: followed by a numberA weekly walkthrough check run failed and its results could not be readOpen the run from Show evidence, re-record what failed, then dismiss the flag with what you found
No flags at all after a releaseNothing a lesson cites changed, or the worker’s signal job did not runCheck the worker logs for lesson_signal.checked (runbook docs/runbooks/academy-living-loop.md)
Dismiss is missingYour platform role is not super_admin, or the flag is merged, published or already dismissedAsk a super_admin

Support: Tenant Impersonation (/platform/tenants/{slug}/impersonate)

Access: super_admin and support_agent

Allows an Embay staff member to log in to a tenant’s context as a specific user, for debugging purposes.

  1. Find the tenant in the tenant list
  2. Click Impersonate
  3. Select the target tenant user (by email)
  4. Confirm — you are redirected to {slug}.embaylms.com with a 1-hour impersonation session

Audit trail: Every impersonation login is written to audit_log with:

  • actor_id: platform user ID
  • is_impersonation: true
  • impersonated_user_id: target user
  • impersonated_by_role: your platform role

Constraints:

  • Impersonation sessions expire after 1 hour and cannot be extended
  • An impersonation session cannot itself perform impersonation
  • support_agent impersonation sessions are read-only within the tenant (no mutations)

Platform User Management (/platform/users)

Access: super_admin only

  • Invite a new platform user by email — sends a one-time set-password link.
  • Add a new platform user directly (LMS-438) — generates a temporary password shown once for you to hand off securely. The new user is forced to change it on first sign-in (a full-screen prompt blocks the console until they do). Use this when email delivery is unavailable or you need to bootstrap an account immediately.
  • Assign or change roles
  • Deactivate a platform user (immediately revokes access)
  • View login history per user

Impersonating a Platform User

Access: super_admin only

For debugging another Embay staff member’s experience, hover a row in /platform/users and click Impersonate. Your session is swapped to that user and an amber banner appears at the top of the console; click Exit impersonation to return to your own account. You cannot impersonate yourself or a deactivated user. Every impersonation start is written to the audit log (platform_impersonation_started) with your id as impersonatedBy.

This impersonates a platform user on app.embaylms.com — it is distinct from entering a tenant (see Tenant access above).


Help insights (/platform/help-insights)

Access: super_admin and support_agent. A billing_admin has no Help insights item in the sidebar, and opening the address shows that the page is not available to them.

Help insights shows what customers’ staff ask the Get help assistant, across every tenant, counted by topic (ADR-031 §2.10). It is the counsel-approved Layer 1: labels from fixed lists, route patterns and counts. No question text, no user ID and no tenant name exist for any row, so none can be shown. Every load of the page is written to the audit log (help_insights_viewed, with the month and filters, never a row of data).

Filters

FilterWhat it does
MonthThe calendar month to show. The counters are kept per month, so the default is the current month to date. Months are kept 25 months
LanguageAll, EN or FR: the language the question was asked in
Asked from (Topics only)The door the panel was opened from: top bar, help page, a help tip, the dashboard card, the one-time tip or the menu

Counts are copied from the assistant every hour (at :25), so the current month can lag by up to an hour.

Topics

Four figures for the month, then one row per guide × kind of question × screen.

ColumnMeaning
GuideThe guide the assistant answered from. No guide when the model named none: the row is kept, never dropped
Kind of questionHow to, Where is, Not working, Not permitted, Not in their plan, What is, Refused, or Unlabelled
ScreenThe route pattern the question was asked from (/admin/groups/:id), never a real address
TenantsDistinct tenants that asked it this month. Counted at this grain by the hourly rollup, never added up from finer rows
QuestionsQuestions on this topic
No sourceShare of answerable questions where no guide passage answered (no_source or related reading shown). Amber above 30 %
Then emailedShare of answerable questions followed by Email support in the panel

“Answerable” leaves out greetings and thanks, questions refused by a limit, and errors. Select a guide to open the row: the outcome mix (answered, no source, not permitted, not in the plan, …) and the number of Email support clicks, counts only.

Gaps by screen

Screens ranked by their no-source rate, or by their then-emailed rate (switch with the two buttons above the table), with the kind of question asked most there. A screen needs at least 10 questions in the month to be ranked, so one unanswered question does not read as 100 %; the page says how many screens fall below that. The Language filter applies; Asked from does not.

Common questions

Shows Not enabled while anonymous common questions are switched off for the platform (ASSISTANT_COMMON_QUESTIONS_ENABLED, LMS-1326, PIA §12.8). When they are on, it lists the month’s questions that 5 or more tenants asked, rewritten without names, numbers or anything outside the product vocabulary, with their language, guide and tenant count. A month’s questions appear only once the month has closed: nothing can be read before then. Three cards show how many were shown, how many fell under the threshold and were deleted unseen, and how many tenants opted out. Opening a question shows its detail; the bin deletes it at once, for a question that carries personal information. The audit log records the deletion by id, month and language, never the text. Every view of the tab is audit-logged.

On the tenant page

A tenant’s Overview tab carries a Get help card: questions this month and limit refusals this month, from the tenant’s own meter. Topics are never shown per tenant: they cannot be attributed.

Troubleshooting

SymptomCauseFix
No questions this month yet on the 1stThe month has just started; counters are copied hourlyWait for the :25 rollup, or pick the previous month
A screen with many questions is missing from Gaps by screenFewer than 10 questions under the selected languageChoose All languages
Then emailed is 0 % although people emailedThe panel was loaded before the counter shipped and did not send the language and doorClicks after a page reload are counted

Errors Console & Platform Notifications (/platform/errors)

Access: super_admin and support_agent can view; status changes and identity resolution are super_admin only.

The Errors console surfaces the self-healing error pipeline (ADR-018): user-facing tenant errors are captured first-party, deduplicated into error groups, ticketed at runtime in Linear, and triaged by an automated coding agent. The console is the human window into that loop.

The Errors list

/platform/errors lists error groups (not individual occurrences), filterable by status and tenant slug. Each row shows the tenant slug, environment, occurrence and affected-user counts, first/last seen, and the linked Linear bug.

Group statuses: New, Triaging, Fix in progress, Awaiting decision (the agent escalated — a human call is needed), Resolved, Ignored, and Regressed (a resolved error came back).

Status actions (super_admin, audit-logged): Resolve an open group, Ignore noise, or Reopen a resolved/ignored group. Each action is also pushed to the linked Linear issue (Resolve → completed, Ignore → cancelled, Reopen → reopened). If the platform app has no LINEAR_AGENT_API_KEY, the status still saves locally and the console warns that the Linear issue was not updated.

Reading an occurrence

A group’s detail page lists its recent occurrences. Each one shows the source, the browser and OS parsed from the request’s user agent, the tenant slug, the URL and the raw user agent itself.

  • The tenant slug is the subdomain the request was sent to, not proof that a tenant exists. Since LMS-1209 a subdomain that names no tenant gets the 404 page before the sign-in pages run, so it no longer reaches this console from there. Older groups can still name one.
  • unknown env means the user agent matched no browser the parser knows. Read the raw user agent: curl/8.x, python-requests or a missing one (none sent) is a script or scanner, not a person.

Identity resolution (audit-logged)

Error rows are pseudonymous — they carry the user’s UUID, tenant slug, and browser/OS only, never email, name, or IP. The UUID stays in the console: the Linear bug and the self-heal agent see only whether the user was signed in, and every id in a URL or message appears as <uuid>. On a group’s detail page a super_admin can explicitly resolve a captured UUID to a person (name, email, role) when needed for support follow-up. Every resolution is written to the audit log.

The notifications bell

The platform console header shows a notifications bell — the first in-app notification path for Embay platform users. It signals pipeline events that need attention: an error group awaiting a decision, a fix deployed, or a regression. Clicking a notification deep-links to the relevant error group. The link “See all notifications” at the foot of the bell opens Platform → Notifications on its Deliveries tab, filtered to you (LMS-1243).

When the agent does not run

A report sent from a browser with nobody signed in, and with no matching error on the server, opens its Linear bug and its row here but does not start the self-heal agent: its text could have been written by anyone. The group’s page says so on one line, “Agent not run: anonymous report”, in the agent analysis card. The same card says when the daily agent cap was reached, and when the daily cap on Linear bugs kept a bug from opening.

A fix the agent drafts merges on its own only when it touches a short list of screen and component files and a second reviewer (Codex) has read it with no serious finding. Any other fix opens a pull request that waits for you.

For pipeline operations (enabling capture, agent caps, the safety envelope, callback secrets, stopping the pipeline, and incident handling), see the runbook: docs/runbooks/self-healing-pipeline.md.

Notification types and channels

Every notification that EmbayLMS staff receive is declared in one registry in the code (packages/api/src/lib/platform-notifications/registry.ts). Each type has a label, a group (errors, email, deploy, database, billing, CRM, SSO, Academy, tenants, lifecycle, security, meta), a severity, its default channels and its default recipient roles.

  • Channels: a type can reach the bell, email and Slack. The bell is on for every type by default, and the types that already posted to Slack still do. Email is a default for every critical type, the new self-serve signup and lifecycle escalations (defaults signed off by the owner, LMS-1245; the full table is in the runbook docs/runbooks/platform-notifications.md). Nothing is emailed until the worker and web switch PLATFORM_NOTIFY_EMAIL_ENABLED is on; it is off by default.
  • Recipients: by default every active super admin receives every type. A super admin can override a type: turn it off, change its channels, add roles or named staff, exclude named staff, or point its Slack posts at another incoming webhook. A type with no override uses the registry defaults.
  • Locked types: a few critical types (production behind main, production health check failing, database refusing connections, a Stripe event never reconciled, a notification that reaches no one, and the three Security types) are locked. The server refuses a change that would turn one off, remove its bell, or leave it without an active super admin.
  • Slack: the default webhook is DEPLOY_ALERT_WEBHOOK_URL. A per-type override is stored encrypted and must be a Slack incoming-webhook URL; any other address is refused on save and again before every post. Configuring Slack from the console is paused (LMS-1360): the console shows bell and email only, and a save there keeps a type’s Slack channel and override exactly as they were.
  • Delivery log: every attempt on every channel is written to an append-only log, kept 13 months. It holds staff user IDs and hashed destinations, never an email address or a webhook URL. Every settings change is audit-logged.

The console screen for these settings is Platform → Notifications, below.

New self-serve signup

A tenant that signs itself up on the website raises the notification “New self-serve signup” (group Tenants). It names the tenant’s slug, plan and signup language, and links to the tenant’s page in the console. It never carries the name or email of the person who signed up: open the tenant to see them.

It replaced the signup email that went to SIGNUP_ALERT_EMAIL (LMS-1239), which was removed on 2026-10-30 (LMS-1245). Its defaults are bell and email: to change who hears about a signup, edit the type, never an environment variable.

Security notifications

Three privileged acts used to reach only the audit log, where nobody reads them as they happen. They now raise notifications in the group Security:

NotificationRaised when
Support sign-in to a tenantA staff member signs in to a customer tenant, either directly as platform support or with the customer’s support-access grant
Platform user changedA platform user is created or invited, changes role, or is deactivated or reactivated
Platform MFA policy changedA super admin changes the platform MFA policy

Each is raised after the act succeeds, beside its audit row; an act that is refused raises nothing. The text names platform users by their ID, the old and new role, the MFA settings that changed and the tenant’s slug, never an email address: the Deliveries tab and the Platform → Users list show who an ID is. The person who did it is notified too, because the alert is for the team.

All three are critical and locked, with bell and email by default and no Slack (Slack is a third party outside Canada). A locked notification cannot be turned off and always reaches at least one active super admin, because privileged access that nobody is told about is not monitored (SOC 2 CC6.2, CC6.3 and CC7.2). Until staff email is switched on (LMS-1245) they reach the bell only. Changing the MFA policy is also audit-logged since LMS-1355; it was not before.

Lifecycle escalations

When the lifecycle engine opens an escalation (ESC-1 to ESC-4: a conversation that needs a person rather than an automated email), it still writes the escalation and creates the founder task in HubSpot, and it now also raises “Lifecycle escalation raised” (group Lifecycle, severity warning). The notification names the gate and its label, the tenant’s slug and the SLA date, says whether the HubSpot task was created, and links to the tenant’s page. It never carries the contact’s name or email: they are on the HubSpot task.

  • One notification per escalation. A gate that the work-in-progress limit turned back into an automated email is recorded as missed and raises nothing.
  • Its defaults are bell and email to super admins: an escalation is a task with a due date, so it is emailed even though it is a warning (owner ruling B4). It is not locked, so it can be muted or sent to other staff from Platform → Notifications.
  • Until staff email is switched on (LMS-1245) it reaches the bell only.
  • If HubSpot refused the task or is not configured, the notification says so and is the only signal that the escalation exists.

Portal-language requests

When a tenant’s Owner asks, from Settings → General, for a portal language EmbayLMS does not offer yet, staff receive “Portal language requested” (group Tenants, severity info, bell by default). The notification names the tenant’s slug and the language as the Owner typed it, with its language tag when it was recognised, and links to the tenant’s page. It never names the Owner. Read it as demand: which language to build next.

  • One notification per language per tenant: a second Owner asking for the same language, or the same Owner asking again, is recorded but rings nobody.
  • A tenant can send 5 requests a day; each one is audit-logged in the tenant’s audit log.
  • When a deploy makes the requested language offered, the worker emails every Owner who asked (within the hour), once. A request whose name was not recognised as a language gets no email: follow it up by hand if you build that language.
  • It is not locked, so it can be muted or sent to other staff from Platform → Notifications.

Email reputation alarms

An hourly worker sweep computes each email provider’s bounce and complaint rates over a rolling 24-hour window (from the webhook-fed email_metrics counters) and raises a platform bell notification when a threshold is crossed. Both providers are checked — the dormant one included — and rates are only computed once a provider has sent at least 100 emails in the window. The same alert level is not re-raised within a 6-hour cooldown.

SignalWarningCriticalAWS review line (for reference)
Bounce rate2.5%4%5%
Complaint rate0.05%0.08%0.1%

Thresholds sit deliberately below the AWS review lines even though sending runs on Resend — SES is the retained return path (ADR-020), and a domain whose reputation degraded on Resend would arrive at SES already in trouble.

When an alarm fires, check:

  1. The suppression list (email_suppressions) — is it growing? A burst of hard bounces usually means a bad address batch (e.g. a CSV import with stale emails).
  2. The Resend dashboard — per-message bounce/complaint detail and any provider-side status notices.
  3. Recent bulk sends — a tenant’s large notification blast, import-triggered invites, or a scheduled report run that targeted a stale audience is the most common cause. Identify the tenant and pause the source if needed.

Notifications (/platform/notifications)

Who on the EmbayLMS team receives each staff notification, and the log of every delivery. Every platform role can open the page; only a super admin can change anything. Billing admins and support agents see the same page read-only, with “View” in place of “Edit”.

The page has three tabs.

By notification

One row per notification type, grouped by registry group (Errors, Email, Deploy, Database, Billing, CRM, SSO, Academy, Tenants, Lifecycle, Security, Meta). Each row shows the severity, the channels it uses, who receives it and how many active staff it reaches. A lock icon marks the locked types. “Registry defaults” under the recipients means nothing is saved for that type yet; “Overridden” means a super admin saved a change.

To change who receives a notification:

  1. Open Platform → Notifications.
  2. Find the notification. Use the search box, the Group filter or the Channel filter.
  3. Select “Edit” on its row. The edit dialog opens.
  4. Change what you need (see the table below). The box at the bottom shows who the notification will reach before you save, and turns amber when it would reach no one or no active super admin.
  5. Select “Save”. The change applies to the next event of that type and is written to the audit log.

Every change goes through this dialog; the table itself has no inline switches (owner ruling, 2026-10-29).

FieldWhat it doesNotes
EnabledOff means no one receives the notification, on any channel.Always on for a locked type.
BellShows the notification in the console bell.Always on for a locked type.
EmailEmails each recipient through the platform mail shell.Nothing is sent until PLATFORM_NOTIFY_EMAIL_ENABLED is on (LMS-1245); until then email deliveries are logged as skipped.
Roles that receive itEvery active staff member with a ticked role receives it.Super Admin, Billing Admin, Support Agent.
Also notify these peopleNamed staff who receive it whatever their role.Active platform users only.
Exclude these peopleStaff who never receive it, even through a role or a name.An exclusion wins. There is no self-service opt-out: a super admin manages exclusions.

The dialog also has two actions:

  • “Send me a test” sends one test of the notification to you only, on its bell and email channels, never Slack. Its deliveries appear on the Deliveries tab with the detail test, a test never uses up the notification’s hourly email limit, and the test is audit-logged. A notification that is turned off sends nothing.
  • “Draft again outcome” and “Re-record outcome” go only to the person who made the request. Their recipients show as “The person who asked”: there are no roles, people or exclusions to set, and they do not appear on By person.
  • “Reset to registry defaults” removes the saved change so the type follows the code registry again. It is available only on an overridden row.

If a notification is on but reaches no one (every recipient it names is inactive or excluded), the page shows an amber banner above the tabs and the row reads “No one”. The system also raises the “A notification reaches no one” notification on the bell once a day until someone receives it. Select “Fix it” or “Fix” to open the dialog.

By person

One row per platform user: their role, how many notifications reach them on the bell and by email, the notifications they are named on and the ones they are excluded from. The counts are computed from the By notification settings each time the page loads; nothing is stored per person. Select “Show” to list what the person receives.

To exclude one person from several notifications at once:

  1. On the By person tab, select “Edit exclusions” on their row.
  2. Switch off each notification they should no longer receive. A notification they are named on cannot be switched here: remove the name in its own edit dialog instead.
  3. Select “Save”. Each notification changed gets its own settings save and its own audit row.

Deliveries

The append-only log of every delivery attempt, on every channel, kept 13 months. Filter by period, notification, channel, status, recipient (“Me” shows your own) and tenant slug. Select a notification name in the log to see every delivery of the same event.

StatusMeaning
SentDelivered to the bell, accepted by the mail provider, or posted to Slack.
SkippedNot attempted. The detail says why, for example no_recipients, email_channel_disabled, rate_limited, recipient_inactive, type_disabled, channel_off, webhook_unconfigured.
SuppressedThe recipient’s address is on the email suppression list (a hard bounce or complaint).
FailedThe attempt failed. The detail is an error code, never the provider’s message. A failed email is retried by the queue on its own.

The log stores staff user IDs and hashed addresses, never an email address or a webhook URL; the page shows staff by their email from the platform user list.

Export CSV

“Export CSV” downloads every delivery the applied filters match, every page of them, newest first. It exports what the table shows after “Apply”: a filter changed but not applied is not in the file. Use it for SOC 2 evidence pulls, such as “what fired about tenant X in period Y” (CC7.2, CC7.3).

  1. Open Platform → Notifications → Deliveries.
  2. Set the filters (for a tenant: its slug under Tenant, and the period) and select “Apply”.
  3. Select “Export CSV”. The file staff-notification-deliveries-YYYY-MM-DD.csv downloads.

One export holds at most 10,000 deliveries. When the filters match more, a dialog asks first and says how many of the oldest are left out; to export everything, narrow the period or the filters and export each part. Every export is written to the audit log (exported, platform_notification_deliveries) with its filters and row count. Every platform role can export, as every role reads the log.

ColumnWhat it holds
time_utcWhen the attempt was made, ISO 8601 in UTC.
event_idThe event: every delivery of one notification shares it.
notification, typeThe notification’s label and its registry type.
channelbell, email or slack.
recipientThe staff member’s email, read from the platform user list when the file is made; Slack: default or Slack: override; [hashed] when only a hash of the address is stored; No recipient when nobody was reached. Never a raw stored address.
recipient_platform_user_idThe staff member’s platform user ID, when there is one.
status, detailThe outcome and its stored skip reason or error code, as on the page.
provider, provider_message_idThe mail provider and its message ID, for tracing an email.
tenantsThe slugs of the tenants the notification is about; a deleted tenant shows its ID.
titleThe notification’s title.

A cell that a spreadsheet would run as a formula (one starting with =, +, - or @) is written with a leading apostrophe, so it opens as text.

Locked notifications

Eight types are locked: production behind main, production health check failing, database refusing connections, a Stripe event never reconciled, a notification that reaches no one, and the three Security notifications. A locked type cannot be turned off, keeps its bell, and must reach at least one active super admin. The server refuses a save that breaks any of these, from the edit dialog and from Edit exclusions alike, and says which rule the save broke.

Troubleshooting

ProblemCauseWhat to do
”Not saved. A locked notification must reach at least one active Super Admin.”The roles, names and exclusions you chose leave no active super admin.Tick Super Admin, or name an active super admin under “Also notify these people”.
A person cannot be switched off in Edit exclusionsThey are named on that notification, or they are its only active super admin and it is locked.Remove the name in the notification’s edit dialog, or add another super admin first.
Email deliveries all read Skipped, email_channel_disabledThe email channel is off platform-wide.Expected until LMS-1245 turns on PLATFORM_NOTIFY_EMAIL_ENABLED on the web app and the worker.
”Send me a test” says nothing was sentThe notification is turned off, or its bell is off.Turn it on or tick Bell, then send the test again.
A Slack row reads webhook_unconfiguredNo Slack webhook is set while Slack is paused.Expected. See LMS-1360.

What the Platform Does NOT Include

The following are not available at app.embaylms.com. Always access them at the tenant’s subdomain:

  • Course catalog and course editor
  • Enrollments and completions
  • Learning paths and skills
  • SCORM content upload and launch
  • ILT sessions and quizzes
  • Tenant user management (inviting learners, setting tenant roles)
  • Reports and certificates

Troubleshooting

SymptomLikely CauseResolution
Redirected to login page on app.embaylms.comNo platform user account, or session expiredSign in, or ask a super_admin to create your account
Signed in but immediately redirected awayAccount exists in a tenant schema, not in platform_usersA super_admin must create you a platform account via /platform/users
A file purge stays Failed with “Another tenant now uses this slug or id”A new tenant took the deleted tenant’s slug before its purge ran, so the old files share the new tenant’s folderDo not delete the folder. Follow docs/runbooks/tenant-content-purge.md §3 to separate the old files by their dates
Someone says the signup form tells them their email address already has a workspaceThat address opened a workspace on the website that has never paid, and it still exists, suspended and soft-deleted included (LMS-1621)See “What the website signup refuses”: help them sign in, delete the old tenant permanently, or create the new one from the console
A new customer says the people they invited or enrolled received no emailThe workspace was opened on the website and its Owner has not confirmed their email, so mail to anyone else is held (LMS-1622). Overview shows “Owner email confirmed: No, mail to other people is held”The Owner signs in and chooses Send the link again in the notice at the top, then follows the link. An Owner who does not sign in: choose “Send confirmation link” on the Overview tab. Held mail is not sent later: they invite or notify again
A prospect says the signup form refuses their email address as temporary or disposableTheir address is on a disposable-mail domain (LMS-1620)See “What the website signup refuses”: a different address, or create the tenant for them from the console
Tenant shows provisioning indefinitelyRedis/BullMQ not runningRun pnpm tsx infra/scripts/provision-tenant.ts --tenant {slug} manually
app.embaylms.com/admin/courses/... returns redirectCorrect — tenant routes are blocked on the platform domainAccess at {tenant}.embaylms.com instead
”Platform API only accessible from platform domain” error/api/platform called from a non-platform domainSecurity guard — do not call the platform API from tenant subdomains
Impersonation session expired1-hour limit reachedStart a new impersonation session from /platform/tenants