docuAIMS

OPSAIMS — Platform Admin Manual

OPSAIMS — Platform Admin Manual

Status: living document, started 2026-07-27. It describes the cross-tenant platform features as built today and grows as features ship. Sections marked 🔜 Coming soon describe planned capabilities not yet available. This is the operator-facing companion to the User Manual, which covers the end-user / tenant-admin product. Concepts introduced there (account · tenant · workspace, the area switcher, studios & stages, roles) are not repeated here — read that first and follow the links.

OPSAIMS is a multi-tenant platform: many customer companies (tenants) run on one shared codebase and database, isolated from each other by row-level security. This manual is for the platform admin — an OPSAIMS operator with cross-tenant, superadmin authority who provisions and runs every tenant, curates the shared catalogs, moves licenses, and watches platform health.

If you manage only your own company, you want the green Admin area and the User Manual §9 — not this document.


Table of contents

  1. What a platform admin is
  2. Entering the platform area (the purple plane + MFA)
  3. How platform authority works (the security model)
  4. Customers · 4.1 Domains & automatic provisioning
  5. Commercial: Revenue & cost, Prices, AIMS Credits · Invoicing
  6. Requests
  7. Agents
  8. PowerUps
  9. Taxonomies
  10. Process Library
  11. Health · 11.1 Release tests · 11.2 Backups
  12. Systems
  1. Cross-cutting: the licensing model
  2. Cross-cutting: tenant lifecycle
  3. Cross-cutting: data residency & the EU AI Act posture
  4. Operator playbooks
  5. Glossary

1. What a platform admin is

A platform admin is an OPSAIMS operator whose authority is cross-tenant. Where a tenant admin can only run their own company's workspaces, a platform admin operates the whole estate:

  • Customers — create, rename, suspend/offboard, and delete (GDPR-erase) any customer.
  • Commercial — read what is sold and what it costs (Revenue & cost), and set every price (Prices, AIMS Credits).
  • Licences — on each customer's page, grant Studio and Suite licences to the tenant's pool and manage each workspace's share, across every tenant: edit, revoke and hard-delete.
  • Requests — review the upgrade / new-product requests tenant admins file.
  • Agents — inspect and edit any tenant's AI agents.
  • Default permissions — keep the DEFAULT access matrix: which System Role may do each action, and which actions also need a protected right (§4a). A new tenant starts with a copy of it; after that each tenant owns its matrix (ADR-0021) and its Admins change it, four eyes, under Admin ▸ Permissions ▸ Matrix.
  • PowerUps — grant and switch on the five PowerUps for any workspace.
  • Global catalogs — curate the shared taxonomies (industry / department vocabularies) and the Process Library (the template catalog every tenant loads from).
  • Health — watch live platform health: event-bus queue depth, AI cost & latency, activity volume, outbound-service reach.

Technically, an account is a platform admin when its platform role is not none. The one platform role today is superadmin, which carries every action — read, create, write, delete, manage (packages/authz/src/permissions.ts). This is distinct from and additive to the tenant role: a platform admin still belongs to a home tenant/workspace like anyone else, and still has (or doesn't have) a tenant role there.

Platform authority is deliberately rare and powerful. Every mutation is audited and attributed to the acting operator (see §3).


2. Entering the platform area (the purple plane + MFA)

The colour code

OPSAIMS renders three "planes", each tinted so you always know which authority you're acting with:

PlaneColourScope
Productneutralthe licensed studios (your own work)
Admingreenyour own tenant/workspace
Platformpurpleevery tenant — operator authority

Getting in

  1. Sign in normally (see User Manual §2).
  2. The area switcher (Product · Admin · Platform) shows a Platform segment (shield icon) — it only renders for accounts with platform rights (area-switcher.tsx). Click it to enter the purple plane at /admin/platform.
  3. Inside the admin area the same switcher sits at the top of the menu (admin-sidebar.tsx): green Admin / purple Platform. The Platform segment appears only for platform admins. Use it to flip between running your own workspace (green) and operating the estate (purple).
  4. The platform landing page is Platform ▸ Overview: what needs attention on this site (open requests, failed deliveries, backups and release readiness). The menu below it has two halves, Business and Product.

The purple sidebar shows only platform services; the green sidebar shows only tenant buckets. The two navs are never mixed.

The platform-MFA gate

Platform authority requires MFA. The (admin) layout enforces this as a global chokepoint (apps/web/app/(admin)/layout.tsx):

  • Any account whose platform role is not none must have satisfied MFA before any admin chrome renders — green or purple.
  • A platform account that hasn't enrolled MFA is bounced to /login/mfa-setup before it can reach a single admin surface.
  • After the MFA gate, the admin area also requires that you are either a platform admin or a tenant admin; otherwise you get /403.

Operator note: because the MFA gate is on the shared (admin) layout, it protects the green area too for platform accounts — you cannot sidestep platform MFA by visiting a tenant-admin page.

Every change made on Default permissions, and every tenant action taken by a platform account, needs an enrolled authenticator — also when the request is sent directly and not from the page.

The pending-requests badge

The menu's Requests item (under Customers) carries a live badge with the count of unreviewed license requests across all tenants. It is computed platform-only through the audited bypass and fails closed to 0 — a broken count can never break the nav (layout.tsx → countPendingLicenseRequestsTx).


3. How platform authority works (the security model)

Three ideas run through every platform page. Understanding them explains the behaviour you'll see:

  1. withPlatformAdmin = authority check + audit row + RLS bypass. Cross-tenant reads and writes go through a single audited "superadmin bypass". It re-checks your platform authority, writes an audit row attributed to you, and runs the query on a connection that is allowed to cross tenant row-level security (via app.superadmin, not by reading app.current_workspace). Because it is itself one transaction, multi-step operations (e.g. approve a request → grant the license → close the request) commit atomically.

  2. The page gate is convenience; the server action is the boundary. Every platform page is gated on can(principal, "platform", "read") so a tenant user hitting the URL is bounced to /403. But the real enforcement is that every mutation re-checks authority server-side — usually can(principal, "platform", "manage") — independently of the page. The UI never trusts the client.

  3. Everything is audited. Grants, revokes, status changes, deletes, taxonomy and template edits, and request decisions all record an audit row. Provenance is a first-class platform concern (see §15).

Some global reference tables (products, product_addons, process_taxonomy_term, process_templates) have no row-level security — tenants read them, but only the platform/owner write path mutates them (app_rls's write grants are revoked). For those, the taxonomy and Process Library consoles run reads on the owner connection (withOwnerTx) and the write actions re-check platform manage.


4. Customers — /admin/platform/customers

What it's for. Platform ▸ Customers (formerly Tenants) is the root of the multi-tenant model — every workspace, member, license, and process hangs off a tenant (a customer). This page lists every customer with rolled-up counts and is where the whole lifecycle begins and ends. Every customer's things are changed on its one customer page; the lists only lead there.

The views (?view=; the first one is the page's plain address):

View?view=What it lists
Customers—Every customer, with status, admin and counts (below).
LicenceslicencesEvery customer's licences, read-only (see Customers ▸ Licences below).
WorkspacesworkspacesEvery workspace with its customer, its PowerUps and its agent count; a row leads to that workspace's PowerUps or agents on the customer page (§7, §8).
Agent teamsteamsEvery customer's own agent team; a row opens it at /admin/platform/customers/<id>/agent-team.

The list. Search by name or admin email, filter by status, and see per-row: name, status badge, the admin email, and workspace + member counts. Your own tenant is tagged with a "You" badge. Clicking a row opens the customer page.

Statuses (active, trial, past_due, suspended, offboarded). active/trial are healthy; suspended/offboarded are the GDPR wind-down states (access cut, data retained) that precede an eventual erasure.

What Suspended and Offboarded do (security review MEDIUM 3, 2026-11-24). They lock the tenant's people out at once, exactly like a whole-tenant deactivation on the partner site: open sessions end, sign-in is refused with the message Your organization's access to OPSAIMS is paused, no workspace switch into it, the Trace extension's device tokens, the tenant's API keys, outside document links and video viewing links stop, invitations cannot be accepted, and no notification, queued mail, digest, Slack/Teams/webhook post, pulse invitation, nudge, watch or standing order goes out for it (deliveries queued before are dropped, not sent later). Someone who also belongs to another tenant keeps that one. Data-maintenance jobs (retention, backups) keep running. Active restores everything as it was; Past due changes nothing. AIMS's own tenant (AIMS staff among its people) can never be suspended or offboarded (aims_tenant), and staff keep working throughout.

Key actions (each an audited server action re-checking platform manage):

  • New customer — enter a customer name + an admin email. This runs provisionTenant, which stands up a complete, usable tenant in one owner-transaction: the org, its first workspace, a tenant_admin user for that email, the free Community licence, branding, and agents. No password is set — the new admin gets a pending credential and signs in first via magic-link / OAuth. If the email already has an OPSAIMS account, it is attached (onExistingUser: "attach").
  • Rename — change the display name in the customer's panel, then Save at the bottom of the panel.
  • Suspend / Reactivate — flip a tenant into suspended (cut access, keep data) or back to active.
  • Delete customer — the small Delete under Save at the bottom of the panel. A GDPR erasure that cascades and removes all tenant data. Type the tenant's exact name to confirm; irreversible except for the audit trail.

Self-protection. You can never suspend, offboard, or delete your own tenant (the one you're signed in under) — the guard blocks self-lockout both in the UI and in the server action.

Customers ▸ Licences — /admin/platform/customers?view=licences

The licences of every customer (formerly Licensing ▸ Tenants): one row per customer, across every tenant. It shows what each tenant owns in its pool (tenant_licenses) and what its workspaces hold (workspace_licenses). The list is read-only: a customer's licences are changed on its customer page, under Licences, and nowhere else.

Columns. Customer (with its workspace count), Studios & Suite (one chip per Studio or Suite licence, reading used / owned processes · seats; amber when some of it is still free, red when the workspaces hold more than the tenant owns), PowerUps (how many the tenant holds), Allocation, Status and Renews. Stages are not listed: a Studio licence covers every Stage in it.

KPIs. Customers (with the workspace count), Waiting to Be Allocated (free processes, plus free seats, across all pools), Over-Allocated (Workspaces hold more than the customer owns) and Renewing in 30 Days. A click on Waiting to Be Allocated or Over-Allocated filters the list to those tenants.

Filters. Search (customer or workspace), Licence Type (Studios / Suite / PowerUps / Community), Filter by Status, and Allocation: All / Unallocated / Partly Allocated / Fully Allocated / Over-Allocated, each with a count. Allocation shows only when some tenant has something to allocate. A tenant with one product over-allocated and another with room left shows under both Unallocated and Over-Allocated. An old /admin/platform/licensing?view=tenants&tenant=<id> link opens that customer's Licences view.

The expanded row. A click anywhere on the row expands it. Per Studio or Suite licence it shows the Licence (Studio Licence / Suite Licence / Community Licence), Processes · Used / Owned, Seats · Used / Owned, Free, and Given to Workspaces: one chip per workspace share, marked Paused by customer where that applies, or Not given to any workspace yet. Then the tenant's PowerUps, each with the Studio it needs (None yet when it holds none). Open its licences closes it: the customer page's Licences view (below), where the shares are changed and Grant Licences is.

The manage panel of one workspace share opens from the licence tree on the customer page's Licences view:

  • Edit — Status (Active or Suspended; there are no trials), Package, Processes (the included_units allowance that gates process creation) and Seats (the invitable-user pool), each with an Unlimited toggle, and Renews / Expires (Leave empty for no expiry.). Then Save. Backed by saveLicense → activateProductInPool, an upsert on (workspace_id, product_key). A share never outlives its tenant pool: the panel says Customer Pool Expires {date}. A later or empty date is capped at it. Every raise is checked against the pool. Lowering, pausing and re-saving always fit. A raise that does not fit is refused under Not Enough Free in the Customer Pool, for example Only 4 free processes in the customer pool. This workspace can hold up to 6., with a Grant More link to the customer's Grant Licences page.
  • Suspended (status, Studio and Suite rows only) — the pause. The workspace loses the Studio and every Stage in it at once, but expiry, seats, processes and package stay as saved. Credits are not touched. Who paused it is recorded (suspended_by, migration 0215), and the two pauses treat the pool differently:
    • A pause set here (Paused here by OPSAIMS. The customer cannot resume it; save Active to resume.) keeps holding its share of the tenant's pool.
    • A pause by the customer's admin, from Admin ▸ Plan ▸ Allocation (setLicencePaused), gives its processes and seats back to the pool, so another workspace may take them. The tenant can resume only its own pause, never yours.
    • Saving Active lifts either pause, but only if the pool has room for the share. If it does not, the save is refused under Not Enough Free in the Customer Pool. Saving a tenant-paused row with status Suspended (for example to fix its seats) leaves the pause the tenant's.
  • Grant (while not active) — turn the product on for the workspace (grantProduct, source: admin_grant), pool-checked like a raise. The share takes the tenant pool's end date.
  • Revoke (while active) — "turn it off": status → expired; the row and its history survive. Seats and processes are kept, and its share goes back to the pool.
  • Delete — the hard path: Removes the licence and its history. Revoke keeps both. Confirms first; irreversible bar the audit trail. Prefer Revoke unless you are cleaning up bad or test data.

PowerUp rows show no process or seat numbers (Not process- or seat-limited: this PowerUp applies across the whole workspace.) and have no pause. Their panel offers Grant (grantAddonLive: licensed and switched on), Activate / Deactivate (the switch only; the licence stays) and Revoke (revokeAddonLive: ends the licence and turns the switch off). See §8.

Customer page — /admin/platform/customers/[tenantId]

The one page for one customer (formerly the tenant master page), and the only place its things are changed. Its header shows the status (with its selector), the counts and the company facts. Its views (?view=):

  • Overview — the company profile: legal name, address, contact, billing email and internal notes.
  • Licences (?view=licences) — two sub-views. Contract and licences holds the contract, the Enterprise Contract form, the invoices, the Community Licence card and the customer's licence tree: each workspace, with its Studio and Suite shares and its PowerUps under it, beside the tenant pool. Facets: Workspace, Org Unit, Filter by Product, Licence Type, Filter by Status and Allocation (Org Unit and Allocation only when there is something to filter). Opening a licence slides in the manage panel (see Customers ▸ Licences). Grant Licences opens the Grant Licences page for this customer. PowerUps (&sub=powerups) shows one workspace's PowerUps, with a workspace chooser (§8).
  • Community Licence (on the Licences view, shown only while the tenant holds a live Community licence) — raise or lower this ONE tenant's free Community Processes and User seats (whole numbers, 1–100 each), then Save; Reset to default (p · s) sets them back to the platform's current Community setting. This is how you give a prospect more room to try — it is not a grant: the rows stay source: community, active, with no end date, no credits move, and rows of any other source (a studio they bought) are left alone. The tenant's pool rows always change; when exactly one workspace holds a share of the Community licence (the signup shape) its rows change too and take effect at once — otherwise the card says the numbers went to the tenant's pool and the tenant assigns them to a workspace under Admin ▸ Plan ▸ Allocation. In that case the pool cannot drop below what the tenant has already handed out; the card says they must free it first. Reset is greyed out when the tenant already has the default. Platform manage only; audited as tenant_license.community_adjust (adjustCommunityLicenceTx in community-adjust.ts).
  • AIMS Credits (?view=credits) — the customer's credits, one row per workspace.
  • People (?view=people) — email + role per workspace.
  • Workspaces (?view=workspaces) — each workspace, with its org unit and its data-residency region, which can be changed on the row.
  • Agents (?view=agents) — one workspace's AI agents, and the link to the customer's Agent team (§7).
  • Domains (?view=domains) — the tenant's verified email domains and automatic provisioning. See §4.1 below.

An old tenant address (/admin/platform/tenants/…, with ?tab= or ?view=) still opens the matching view here.

Enterprise Contract — the Licences View

The customer page's Licences view holds the Enterprise Contract form: a negotiated contract that issues its invoice when it is created (workspace, plan, licences, PowerUps, Yearly total, Currency, Deal note, Payment terms (days); see Marking an invoice paid under Invoicing). A Suspended or Offboarded tenant gets no contract until it is reactivated (tenant_inactive): The tenant is suspended or offboarded. Reactivate it first, then enter the contract. A Past due tenant may still sign.

Replace Now. When the tenant has a running shop contract, the form asks When it starts first, above the plan:

  • After the current term (from {date}) — the default. The Enterprise contract is scheduled to follow the shop contract.
  • Replace now — the Enterprise contract starts today and the shop contract ends today, in one step, so access never drops. The start date field is hidden. The form shows Unused on the current contract: {amount}. Credited on this deal. That is the unused part of the shop contract's yearly total (rounded down to the cent), plus a paid shop renewal waiting to start, which is cancelled and credited in full. The suggested Yearly total is the list price minus that credit (never below 0); you can still type any agreed total. The form's suggestion follows the clock (it is refreshed every minute); the server works the credit out again at the moment you click Create contract, and the success message names that figure. When a shop renewal is waiting, only Replace now is offered.
  • Same currency only. Replace now needs the deal in the shop contract's currency, because the credit is money of that currency. When you pick another Currency, the credit line stays, Replace now can no longer be picked, and the form says Replace now needs the same currency as the shop contract ({currency}). (With only Replace now on offer, Create contract stays disabled.) The server refuses it too (currency_mismatch): Replace now needs the deal in the shop contract's currency. Change the currency, or start after the current term. The after-the-term path takes any currency.

What happens at the switch:

  • AIMS Credits. Credits already granted from the shop contract stay. The Enterprise contract's monthly figure applies from its next monthly grant, which also expires that leftover. A deal that earns no credits expires the shop leftover at the switch.
  • Products. Products the deal covers move straight to the Enterprise contract with no gap. Products only the shop contract had (a PowerUp, a studio) end: a studio falls back to Community, a PowerUp is switched off.
  • Another workspace. The deal may go to a different workspace than the shop contract's. Its whole pool is allocated there, so shares the tenant had in other workspaces end, and the shop workspace's PowerUps are switched off unless the deal is in that same workspace.
  • A checkout waiting for payment refuses the switch (This tenant has a checkout waiting for payment…). Cancel it under Open Checkouts on the same view, or wait until it is paid, then try again.
  • What the tenant sees. In Admin ▸ Invoices ▸ Purchases the shop contract's order reads Replaced by Enterprise on {date}, and a cancelled paid renewal Cancelled: replaced by Enterprise on {date}. On this view the Enterprise contract card shows Credited on this deal: {amount}.

The credit lives on the Enterprise deal and its invoice. Nothing is refunded through Stripe. The yearly total you enter is what the tenant pays (the credit is already taken off it), so the invoice shows the licence line at total plus credit, then a negative line Credit for unused shop contract (German: Anrechnung des ungenutzten Shop-Vertrags). Net is the total you entered and the tax is on that net. A deal agreed at 0 still issues an invoice (net 0, tax 0), so the switch is documented. Only a shop contract can be replaced: a running Enterprise contract is changed by agreement.

Grant Licences Page

/admin/platform/customers/<id>/grant, opened by Grant Licences on the customer page's Licences view. It grants to that customer and no other (the old /admin/platform/licensing/grant?tenant=<id> leads here). It needs platform manage. Tick what this customer gets and decide where it lands. The summary shows every change before you confirm. Four steps, with a summary beside them:

  1. Customer — the customer of the page. Its {tenant} Holds Now table lists each Studio with Processes Used / Owned, Seats Used / Owned and Allocation, and then its PowerUps.
  2. What to Grant — only Studios and the Suite. Each figure is the new total, not an add-on: setting processAIMS to 25 for a tenant that owns 10 makes it 25, not 35. Size for Every Ticked Studio applies a package (or Custom) to every ticked Studio; the Suite is Every Studio in one licence. Replaces the single Studio choices below. Each Studio row shows the processes and seats it comes to and +{credits} AIMS credits, credited once. A Studio in build cannot be granted: {studios} are planned and cannot be granted yet. Stages come with their Studio and are never granted on their own. PowerUps are listed but cannot be ticked: PowerUps are switched on per workspace, on the customer's page under Licences. Granting one to the whole customer is not available yet.
  3. Terms — always an Admin Grant: Free. Not counted in revenue or the forecast. Reason for the Free Grant is required (up to 500 characters) and goes to the audit log (tenant_license.grant_batch). Valid Until: 1 Year (the default), No Expiry, or Pick a Date (after today).
  4. Where It Goes — Keep in Customer Pool (The customer's Admin decides which workspace gets them. Until then they show as Unallocated.) or Give to a Workspace Now (Free processes and seats go straight to this workspace. No second step for the customer.). A tenant with exactly one workspace starts on that workspace (Only one workspace, picked for you.); otherwise it starts on the pool.

The summary shows each change: New, No Change, from → to, Replaces Community, New End Date. Warnings come with one-click fixes such as Set {product} to {count}:

  • {product}: workspaces already use {used} processes. A total of {have} leaves them over by {by}.
  • {product} is over-allocated today: workspaces use {used} processes, {tenant} owns {have}.
  • {product}: this grant replaces the free Community licence. Its source becomes Admin Grant, with the figures above. To give a Community tenant more room for free instead, use the Community Licence card on the customer page (§4).

Blockers stop the confirm until they are fixed: nothing ticked, no reason, no or past end date, no workspace picked, and Over the Limit of 100,000 Seats or Processes: Grant Fewer {product} Licences. Grant {n} Licences confirms (grantTenantLicences → grantTenantLicencesTx).

Done. Licences Granted to {tenant}, the AIMS credits credited (or No AIMS credits credited), and per product either the workspace that now holds it or The free licences wait in the customer pool until the customer's Admin allocates them. View the licences and Grant More follow.

Credits follow the pool. A grant credits a Studio's included AIMS credits once, for the units it adds to the pool. Lowering a total, or granting the same total again, credits nothing. A tenant upgrading from Community is credited only for the units above its Community allowance. Only a Studio with a credit rate credits (today, processAIMS).

Stop Selling. In the Holds Now table, Stop Selling ends one product's pool: The customer pool for this product ends now. Workspaces keep what they hold and show as over-allocated until it is granted again. Audited as tenant_license.revoke.

4.1 Domains — ?view=domains

What it's for. Recording that a tenant owns an email domain, proved with a DNS record — and, optionally, letting people at that domain get an account automatically when they first sign in.

This is the groundwork for enterprise SSO: once a domain is verified, someone@company.com can be routed to that company's own identity provider. That routing is not built yet; verification and automatic provisioning are.

⚠️ This is a platform-only surface, and deliberately so. A verified domain is a claim that reaches across tenants — whoever holds company.com decides where every address under it goes. Tenant admins cannot see or set it. Do not delegate it by adding someone to the platform plane.

Do not confuse it with a custom domain. A custom domain is a vanity web address and proves nothing. This is an identity claim and is unrelated.

Verifying a domain

  1. Domains view ▸ Add a domain. Type the bare domain — company.com, not a URL and not an address. Public mail providers (gmail.com, outlook.com, …) are rejected: nobody can prove they own them.

  2. The row appears as Not verified, with a TXT record to publish:

    TypeTXT
    Name_opsaims-challenge.company.com
    Valueopsaims-domain-verification=…

    Send all three to the customer's DNS administrator. The dedicated _opsaims-challenge name is used rather than the domain root so nothing they already publish (SPF, DMARC, other vendors' strings) is at risk from the edit.

  3. When they confirm it is published, press Verify. DNS changes take a few minutes to propagate — a first attempt reporting "No TXT record found at that name yet" is normal, not a failure. Press it again shortly.

  4. On success the row turns Verified.

If verification keeps failing, the message says which of three things happened: no record at that name at all, a record whose value doesn't match (usually a partial copy — use the copy button), or the nameservers not answering.

New token re-issues the value, for when the original was lost or mangled. It is available only before verification: a verified domain keeps its token, because rotating it would silently un-verify the domain. To start over, remove the domain and add it again.

Two tenants may both claim the same domain while unverified — that is intentional, so nobody can permanently block a domain by claiming it first. Only one can verify it. If verification reports "Another customer has already verified this domain", someone else proved ownership; check whether it was a test tenant of your own before going back to the customer.

Automatic provisioning (JIT)

On a verified domain you can switch on Provision new users automatically.

With it on, anyone whose Google or Microsoft account proves an address at that domain is given a membership the first time they sign in — no invitation, no approval, no email. Off (the default), those people are turned away at the login screen until someone invites them.

You must choose:

  • Into workspace — one workspace belonging to this tenant. The switch cannot be armed without it.
  • As — Viewer or Editor. Tenant admin is not offered, and cannot be set by any route. Administrators are made deliberately, one at a time.

Then press Save. Nothing takes effect until you do.

What still holds you back, by design:

  • Seats. JIT respects the workspace's seat allowance exactly as invitations do. When it is full, new arrivals are refused and nothing is created — they see a failed sign-in, and you will see no new member. If a customer reports "our new starters can't get in", check seats first.
  • Proof of address. The identity provider must have verified the address. An account whose email is merely typed in at the provider never reaches this path.
  • Verification. Turning JIT on before the domain is verified is refused.

Turning it off stops new provisioning immediately and leaves existing members alone — removing someone is a separate act, under the tenant's own member management. The workspace and role you chose are remembered, so pausing intake does not mean re-entering the configuration.

Every change here is audited, as is every account JIT creates (user.jit_provisioned) — and those rows are visible to the tenant's own admins, not just to you, because an account appearing without an invitation is precisely what a customer needs to be able to see.


4a. Default permissions — /admin/platform/roles

What it's for. Every tenant decides who may do what with the same five roles on a ladder — Guest (0) < Viewer (1) < Auditor (2) < Editor (3) < Admin (4) — and the same access matrix: for each action (open a rate card, publish a version, decide a lever, delete a source), the lowest role that may do it and, for a few, a protected right the person must also hold, and from which role up that right is held automatically. The Auditor was inserted by migration 0198, which moved Editor and Admin up one level. Platform ▸ Default permissions (formerly Roles & Permissions) is where the default matrix is kept: platform data, the copy every NEW tenant starts from. Its views are Matrix, Roles, Protected Rights, Rules and History.

Each tenant owns its matrix (ADR-0021, migration 0262). When a tenant is provisioned it gets its own copy of the published default as its version 1. From then on only that tenant's Admins change it (Admin ▸ Permissions ▸ Matrix): one action at a time, with a mandatory reason, in force only once a SECOND Admin approves. A publish here therefore reaches a tenant only for an action its copy has no row for — a new action from a new feature — and those tenants' Admins get an Access Matrix: new actions notice (after a publish, and in the hourly licence tick). A changed default for an existing action reaches new tenants only. The Safety Rules sit outside every matrix, the default included: only Admins manage people, grant rights or change a matrix (guard.admin-only); Guests never read SOPs; nobody approves their own work; a tenant changes an action's lowest role, never its protected right.

Three things decide every request: licence ∧ role ∧ right. The action's product must be licensed to the workspace (unchanged licensing), the person's role must be at or above the action's lowest role, and if the action needs a protected right the person must hold it — unless their role is at or above the row's "held automatically from" role. The matrix changes only the middle and the last of these.

Who can use it. Platform read (staff and superadmins) can look at everything and run Validate & Prove. Changing anything — a cell, a draft, a publish, a new role — needs platform manage (superadmins). A staff account sees the page read-only. Every operation, reads included, is written to the audit log under your name.

The Header: One Draft for the Whole Page

The chip at the top says where the matrix stands:

  • Published · version N — tenants are deciding by version N and there is no draft.
  • Draft · N changes — someone has started changing the matrix. N counts the actions whose lowest role or protected right in the draft differs from the published version.

Nothing you change reaches a tenant until you publish. There is at most one draft at a time, shared by every platform admin; the first change creates it as a copy of the published version.

  • Discard throws the draft away. The published version is untouched.
  • Validate & Prove checks the draft without publishing it (see below). Staff may run it.
  • Publish asks for an optional note, then validates and proves the draft again inside the publish itself and refuses on any problem. On success the draft becomes the published version, the previous one is archived, and every tenant's next request is decided by the new version.

Matrix tab

Actions are grouped by area (Atlas, Costing, Mining, Lens, Score, Forge, Twin, Reports, Workspace), one column per role on the ladder, now five: Guest, Viewer, Auditor, Editor, Admin. The Auditor column is between Viewer and Editor. A filled cell is the action's lowest role; the tinted cells to its right are the roles that inherit it. Click a cell to make that role the lowest — the change is saved to the draft at once and the row is marked "was Editor" (or whatever it was). The Guest column never toggles: guests get nothing from the matrix, only what is explicitly shared with them (the investor room, one shared report).

Search by label or key, and use Changed only to see just the rows the draft moves. Badges on a row show a protected right it needs (Salaries right) and the sign-off rule (separation of duties). On an action whose right is held automatically, the badge also names the role, for example Usernames right · automatic from Admin or Salaries right · automatic from Editor. Clicking a cell moves only the action's lowest role; its right and "held automatically from" stay as they were. When a draft moves the automatic role, the amber "was …" badge adds was automatic from role (or was grant only).

Click an action's name to open its detail panel:

  • Lowest role that may do this — the same choice as the cells, as a segmented control, with who that reaches ("Editor, Admin can do this").
  • Protected right also needed — None, Salaries, Performer identity or Usernames.
  • Held automatically from — appears when the action needs a protected right (without one it says "Choose a protected right first", because only a protected right can be held automatically). Pick Nobody (only people a tenant Admin grants the right to may do the action) or a role on the ladder. The lowest role (Guest) is not offered, because "from Guest up" would give the right to everyone — remove the right instead. The sentence below explains the choice, for example "Admin and every role above it have the Usernames right without a grant. Everyone below needs a tenant Admin to grant it." Clearing the right also clears "held automatically from". A waiver without a right is refused ("Only a protected right can be held automatically"), and so is a role that is not on the ladder or the lowest role; the database refuses a right-less waiver too.
  • Extra rules — read-only. Separation of duties shows here for the sign-off actions.
  • Enforced in code — the API routes and server actions that ask about this action. "No route or server action checks this permission yet" means the row is decorative until a route adopts it: moving it changes nothing for anyone. The list also includes routes that pass the action to a check through a helper (for example Score's lever decisions and its hand-over to transformAIMS, which check score.results.read to read and score.lever.decide to decide or hand over — since ADR 0094 a person decides in Score, not in Lens — and the Lens, Score and Forge chats).
  • Impact — how many people hold that role or above today, across every tenant, and the licence and right that still apply. With a waiver it names the automatic role: "…below Admin, only those granted the Usernames right may do it."

Held automatically from — the published defaults. A matrix row that needs a protected right can say from which role up the right is held automatically (access_matrix_rows.right_waived_from). Below that role a person needs a tenant Admin's grant; at or above it nobody does.

ActionRightHeld automatically from
See other people's names in histories and logs (people.names.read)UsernamesAdmin
See hourly rates and annual cost (costing.salaries.read)SalariesEditor
Edit pay values (costing.salaries.edit)SalariesEditor
Export the rate card with pay (costing.salaries.export)SalariesEditor
Switch performer identity on and see names (mining.identity.reveal)Performer identity— (nobody)

The Auditor column holds the read-only audit material: the tenant audit log (admin.audit.read), version, decision and change history (history.read), the read-only exports (atlas.version.export, lens.results.export, reports.export) and the Governance space's Signed Export of the audit log (governance.audit.export). An Auditor has no write, run, decide, publish or manage action, and a formal proof checks that on every publish.

Governance (tenant side). Since 2026-09-26 the tenant audit log is not in the tenant Admin area: it is the Audit Trail in the tenant's Governance space (/governance/audit, with /governance/access-review), entered with history.read or admin.audit.read. /admin/audit is a 308 redirect to it. Platform staff keep the read they had on the old page and no more: the audit trail of the workspace they are in, with names; no cross-workspace scope and no process list. Their pay view follows the role they hold in that tenant.

Save to draft writes the panel's choice into the draft and closes the panel. Reset to published puts the form back to the published values (save to apply).

Roles tab

The ladder, lowest first: each card shows the role, what it adds on top of the role below it (the actions whose lowest role it is), and how many people hold it across how many tenants.

Insert a Role adds a new rung — for example an Analyst between Viewer and Editor. You give it a name, a key (lower case, digits, underscores; it appears in the generated policies and cannot be changed later), an optional description, and a position (directly above an existing role). The roles above it move up one level. A new role:

  • takes effect on the ladder immediately (roles are not versioned), but changes nobody's access: nobody holds it, and until a published matrix moves an action to it, it can do exactly what the role below it can;
  • is given to people by tenant admins on Admin ▸ People;
  • gets its own actions by moving them in the draft and publishing.

Roles cannot be renamed, deleted or reordered from this page yet.

Protected Rights tab

The rights outside the ladder that actions can require — Salaries (hourly rate and annual cost per FTE; held automatically from Editor up, masked as ••• below that without a grant), Performer identity (real names in Mining event logs; pseudonymised without it; nobody holds it automatically) and Usernames (other people's names and emails on every tenant surface; held automatically by Admins, user IDs for everyone else without a grant). Each card lists the actions that need it (in the draft when there is one) and how many people hold it today, and says who holds it by default, based on the draft (or the published version if there is no draft):

  • "Held automatically from role up. Everyone below needs a grant from a tenant Admin; every grant is audited." — when every action that needs the right is held automatically from the same role.
  • "Default holders: nobody. …" — when no action that needs the right has an automatic role.
  • "Held automatically from different roles, depending on the action." — when the actions differ. Open an action to see which role applies to it.

Tenant admins grant rights to named people, and every grant is audited. Glossary steward is reserved for execAIMS and cannot be chosen yet. Platform pages (this area, the customer list, requests, a workspace's agents) are platform-staff tools and keep showing names; the Usernames right covers tenant pages only.

Rules tab

The fixed guards that apply to every matrix and are not editable here:

  • The author cannot sign off their own work (separation of duties) — deciding a lever, publishing a version. Opt-in per workspace. The workspace switch is not built yet, so today it is off everywhere; the guard and its proof are in place for when it is.
  • Access ends on its end date — for auditors and consultants given an end date; always on.
  • Tenant isolation — nobody acts on another tenant's data, whatever their role; always on, and proven on every publish.

History tab

Every version, newest first: its status (Draft, Published, Archived), note, who created it and when, who published it and when, and how many actions it changed against the version before. Open a row to see each change ("Export Lens results: Editor → Admin"). A change shows the automatic role too, for example Viewer + Salaries → Viewer + Salaries (automatic from Editor); moving only the automatic role counts as a change. Version 1 is the seed from the catalogue defaults. Migration 0198 published a new version (the version published before it plus the changes: the two new actions people.names.read and history.read, the audit log and three read-only exports moved to Auditor, and the Salaries and Usernames waivers) and archived the one before it. Migration 0199 steps it once more in the same way, adding one action: governance.audit.export ("Take a signed export of the audit log") at Auditor. On a database where a matrix draft was open when a migration ran, its new version is not created until the draft is published or discarded and the migration runs again (every deploy replays it); until then the engine answers the new action from its catalogue default, which is the same row.

What Validate & Prove Checks

Validate generates the Cedar policies from the draft and the ladder and runs strict Cedar validation. It also refuses a draft that names an action no longer in the catalogue, a role not on the ladder, or the lowest role (Guest) as an action's lowest role.

Prove then runs the generated policies through the engine that will enforce them and asks every action the questions the grid claims to answer: every role below the lowest is refused and the lowest and above are allowed; the action is refused without its licence, without its protected right, on another tenant's data, and after access has ended; a sign-off action is refused to its own author when the workspace policy is on. For an action whose right is held automatically from a role, every role from the action's lowest role up to the one below that role must be refused without the right, and that role and every role above it must be allowed. The result shows how many checks ran and lists any that failed.

The formal proofs (packages/authz-cedar/proofs/run-proofs.sh) also prove that pay is allowed only to a holder of the Salaries right or an Editor and up, that names are allowed only to a holder of the Usernames right or an Admin, and — for every action that is not a read or a read-only export — that an Auditor (and anyone below) can perform none of them.

A publish runs both again inside its own transaction. Any issue or failed proof refuses the publish; nothing changes and nothing is recorded as published.

The step-by-step is in the playbook Change what a role may do (§16).


5. Commercial — Revenue & cost, Prices, AIMS Credits

What it's for. In the Commercial group of the Platform menu, each question has one page, and each figure has one place where it is changed:

PageAddressWhat it does
Revenue & cost/admin/platform/revenueReads what is sold (Overview), what it will bring in (Forecast) and what the AI behind it costs (AI cost). Nothing is edited here.
Prices/admin/platform/pricesEvery price in money: Studios, Suite, PowerUps, Community, Discounts, Packages, and the shop's Currency.
AIMS Credits/admin/platform/creditsEverything in credits: Run prices, Licence grants, Packs, Videos.
Invoicing/admin/platform/invoicingIssuer, Tax, Former customers (below).

What every customer holds is on Platform ▸ Customers ▸ Licences, and licences are granted on the customer's page, on its Grant Licences page (§4).

A page needs platform read; every write needs platform manage and is audited. Without manage the values are shown, the buttons are not. Cross-tenant reads go through withPlatformAdmin (audited as license.list_all).

The rules they follow (founder decisions).

  • Yearly contracts only. The admin enters a monthly price. The yearly contract is always 12 × monthly, shown read-only. There is no yearly discount.
  • Exact cents everywhere (€9.90, not €10).
  • One shop currency, EUR or USD, set on Prices ▸ Currency (below). Every price is still kept per currency, so switching the shop currency never leaves a product without a price.
  • One % discount ladder, shared by every studio and the Suite. The milestone bonus and the pre-order % sit beside it on Discounts.
  • A Studio licence covers the whole Studio. There are no Stage licences to sell; PowerUps are sold on their own.
  • No trials. A new tenant gets the free Community licence, which never expires.

The views (?view=; the first one is the page's plain address):

PageView?view=What it does
Revenue & costOverviewoverviewWhat one licence includes, what is sold today, every price, the pricing rules. Sub-tabs ?sub=studios|powerups|suite.
ForecastforecastMonthly licence revenue from existing contracts.
AI costai-costWhat the AI runs of every workspace cost.
PricesStudiosstudiosPer Studio (?studio=<key>): availability, requirement, what one licence includes, the list price, and the live price.
SuitesuiteThe same for the OpsAim Suite, plus its minimum order.
PowerUpspowerupsThe PowerUps, their prices, and the price editor.
CommunitycommunityWhat the free signup licence grants.
DiscountsdiscountsThe one ladder, the milestone bonus, the pre-order %.
PackagespackagesThe predefined package sizes shown in the shop.
CurrencycurrencyThe one shop currency, and the licence list per currency.
AIMS CreditsRun pricesrunsWhat a run of each agent costs.
Licence grantsgrantsWhat one licence of each product grants per month.
PackspacksThe credit packs the shop sells.
VideosvideosWhat an explainer and a stage results video cost.

Every old address (/admin/platform/licensing, /shop, /pricing, /settings, /usage, with ?tab= or ?view=) goes on to its new one; /admin/platform/licensing?view=tenants goes to Platform ▸ Customers ▸ Licences.

Revenue & Cost ▸ Overview

Platform Default for a New Studio Licence. Chips show what one studio licence includes by default: 1 process · 1 user seat · 10 AIMS credits/month, and the billing note Yearly contracts · monthly shown for comparison · exact cents. A studio whose ratio differs shows Custom in its tables. Edit platform defaults opens Prices ▸ Studios; the 1 · 1 · 10 default is fixed in code, and you change the ratio per studio, not here.

Sold Today. KPI tiles: Tenants with a licence (distinct tenants holding a studio or Suite licence), Studio licences, Processes licensed, User seats, AIMS credits/month (each = licences × the product's ratio), and the Shop currency. A licence counts when its row in tenant_licenses is active and its source is not community, so Community licences are never counted here.

The price tables. Sub-tabs switch between Studios, PowerUps and Suite (?sub=). Prices are per licence, in the shop currency. A DRAFT prices badge shows on a view only when a price it shows has no live offer: it stands on a draft offer, or on no offer at all (studio and Suite prices from the pricing rules). A view whose prices are all live shows no badge.

  • Studios and Suite: Studio (or Suite), Stages included (the Suite row reads Every studio and every PowerUp · min. N licences), One licence = the ratio, Per month (shop), Per year (12 × month), then Tenants, Licences, Processes, Seats and Credits/mo, and Edit. A studio in build carries a Pre-order −N% tag; a studio that needs another shows Requires X. A totals row closes the table (Tenants there is a distinct count). Edit opens Prices ▸ Studios on that Studio, or Prices ▸ Suite.
  • PowerUps: PowerUp, Needs (the Studio it requires, or Any Studio), Per month, Per year, Status (Draft / Live / Retired), Tenants, Licences, Edit (opens Prices ▸ PowerUps). White Labelling carries the note 20% partner share via the partner Studio.

Pricing Rules · used by the shop and every admin page. Three read-only cards: the Suite (minimum licences and its price per month and year), the Discount Ladder (bands, milestone, pre-order %) and the Packages in the Shop (each shown package priced per year for one processAIMS studio). Edit discounts → opens Prices ▸ Discounts.

Revenue & Cost ▸ Forecast

Monthly licence revenue from the paid contracts that exist today. No new sales are assumed.

  • Year: this year or next.
  • Show as: Earned per month (each contract's yearly value ÷ 12, spread over its months; the default) or Invoiced (the full yearly value in the month the contract starts and on each anniversary).
  • Include Studios, PowerUps and the Suite.
  • Renewal rate (default 90%): every anniversary still in the future multiplies the contract's value by this rate.

Tiles show the year total, the average month, and the renewals due with the contract value at stake. The Revenue by Month chart shows booked months solid and forecast months faded. A table splits the year By Studio, PowerUp and Suite, and Renewals Due in {year} lists each renewal with its expected value (value × rate).

How a contract is valued: with the offer it was sold on, when that offer is in the shop currency; otherwise with today's catalogue price, and the page then says Estimated at today's prices. Studio and Suite contracts are quoted for their process count, less the pre-order % for a studio in build. A contract starts in the month its licence row was created.

Paid licences only. A licence counts when it was bought (stripe), invoiced (invoice), sold through a partner (partner), or is tied to a price-list offer. A free admin grant without an offer and every Community licence are not revenue, so the forecast leaves them out. With no paid licence yet, the page says No paid licences yet. The forecast fills as tenants buy licences. (The Overview's sold counts still include admin grants.)

Revenue & Cost ▸ AI Cost

What the AI runs of every workspace cost: spend, tokens and runs over the last 30 days, the spend by month, and the same by feature, by model and by workspace. It reads agent_runs on the owner connection, so it is not limited to one workspace. A customer sees its own under Admin ▸ AI activity ▸ Usage & cost.

Prices ▸ Studios

A list of the seven studios on the left. Each shows its stage count (or In build), a pre-order tag and any requirement. A dot marks a studio with unsaved edits; edits are kept per studio while you switch, and the browser asks before you leave with unsaved changes.

The card on the right is headed One licence for the whole Studio — no Stage licences:

  • Included stages, and Sold separately as PowerUps: the PowerUps that need this Studio (for processAIMS: Versioning & Archiving and Process Library).
  • Availability: Live (sold at full price) or In build (sold as a pre-order at the pre-order discount; the licence activates at launch).
  • Requires: one other studio, or Nothing — sold on its own.
  • One Licence Includes: steppers for Processes (min 1) and User seats (min 0). Reset to default 1 · 1. Saved bounds: processes 1–1000, seats 0–1000. These are written to products.default_included_units and default_seats. The AIMS credits/month are shown, with a link: they are changed under AIMS Credits ▸ Licence grants only, and a save here never touches them.
  • Base Price per Licence: an EUR / USD toggle (it opens on EUR, whatever the shop currency), the Price per licence / month (shown in the shop) with a DRAFT badge, and Yearly contract (calculated: 12 × monthly), read-only. Billing: Yearly contracts only · no yearly discount yet.
  • What the Shop Charges Today: per currency, the price on sale, or a draft that is not on sale yet. Replace the live price of {studio} opens the offer panel (see How a Price Reaches the Shop).
  • What a Customer Gets: pick a number of licences (default 5) to preview the processes, seats, credits, the yearly contract and its monthly figure.

Save {studio} needs a valid price above 0 in both currencies; otherwise the editor switches to the missing currency and says so. Saving also re-applies the pricing rules (see How a Price Reaches the Shop). The result lists Applied to N draft offers, the offers not changed because they are live (each with Replace the live price), and the products with no draft offer. Saving a monthly price clears any custom yearly price. New terms apply to new licences and at renewal; contracts already sold keep what they bought.

Prices ▸ Suite

The same editor for the OpsAim Suite (suite), which includes every studio and every PowerUp. It has no availability and no requirement. It adds Minimum Order: Minimum Suite licences, 1–100, platform default 10. The shop never quotes the Suite below this number, and the preview here does not either. Save Suite saves the processes and seats, both monthly prices and the minimum, then re-applies the pricing rules.

Prices ▸ Community

The free Community licence every new customer gets at signup: free, never expires, covers every studio. Set what ONE Community licence includes — Processes (licences) 1–100, User seats 1–100 and AIMS credits — once, at signup 0–100 000 — then Save Community (or Reset to default 1 · 1 · 5, then Save). The numbers are stored in the pricing rules and read when a tenant signs up, so a change applies to new sign-ups only; existing Community licences keep what they were granted (raise one tenant's on its customer page, §4). Tenants on Community today counts the tenants holding an active Community licence. Community licences are free, so the Overview and Forecast never count them. There is no trial anywhere.

Prices ▸ PowerUps

A table of the five PowerUps (atlas-versioning, process-library, reports, ai-master, white-label): PowerUp, Needs (the Studio it requires, or Any Studio), Per month (the yearly offer ÷ 12), Per year, Status (Draft / Live / Retired), Tenants, a Note (White Labelling's partner share) and Edit price. Below it, Grant or activate a PowerUp for one workspace → opens Platform ▸ Customers ▸ Workspaces (§8).

Edit price opens the licence-type dialog. Its Pricing button opens the offer panel, where the yearly price lives (see How a Price Reaches the Shop). A PowerUp is priced as one flat yearly offer, code yearly.

Granting one PowerUp to one workspace is not done here: use Grant or activate a PowerUp for one workspace →, which opens /admin/platform/customers?view=workspaces (§8).

The dialog has no Delete button: the five PowerUps are fixed in code. A draft price is deleted inside the offer panel, whose confirm reads Delete this draft price? Nothing has been sold at it.

Prices ▸ Discounts

Discount Ladder. One table of bands, shared by every studio and the Suite: Band, From licence, To, Discount %, and example prices per licence per year for processAIMS and for the Suite, in the shop currency. + Add band adds one. The ladder is graduated: each band's % applies only to the licences inside that band. Rules: the first band starts at 1, bands ascend, each % is 0–90. Defaults: 1 → 0%, 11 → 7%, 26 → 12%, 51 → 17%.

Milestone Bonus. On top of the ladder, on the whole order: every N licences add X%, up to Y% (default every 10, +5%, cap 25%; cap ≤ 90 and step ≤ cap).

Pre-order discount. The % off a studio that is still In build (default 30%, range 0–90). The licence activates at launch.

Save discounts stores the rules and re-applies them. Reset to platform defaults asks first, then saves at once; it resets the ladder, the milestone and the pre-order % only. The lists of skipped and missing offers name products by their key.

Prices ▸ Packages

The predefined package sizes the shop offers as quick picks: Name, Licences (1–100), In the shop (Shown / Hidden), and the price per year for processAIMS and for the Suite. + Add package adds a hidden New package at 100 licences. Names must be unique. A Suite package below the Suite minimum is priced at the minimum, marked with an asterisk. Defaults: Small 10, Medium 25, Large 50, all shown.

Shop Preview shows the cards as a customer sees them, for processAIMS or the Suite: the yearly price, about how much per month, and You save X% against the list price. Save packages stores them.

How a Price Reaches the Shop

Prices live in two places, and the order matters.

  1. The pricing rules — one JSON row in platform_settings, key licensing.pricing_rules. It holds the monthly prices per currency (prices.EUR / prices.USD), availability, the ladder and milestone, the pre-order %, the Suite minimum, the packages and the Community grant. The Studios, Suite, Discounts, Packages and Community views each write only their own part, and each save is audited (licensing.pricing_rules.save).
  2. The offers — the priced rows the shop actually quotes from. Studios and the Suite are sold on a per-process offer (code per-process); PowerUps on a flat yearly offer (code yearly).

When the Studios, Suite, Discounts or Packages view saves, the rules are applied to the current draft offer of every studio and the Suite, in EUR and in USD: the graduated tiers, the milestone, the minimum quantity (the Suite minimum, otherwise 1) and the pre-order % for a studio in build. A live offer is never touched. The save reports it as not changed instead. Community saves are stored without being applied.

The offer panel (opened from Prices ▸ PowerUps ▸ Edit price ▸ Pricing, or with Replace the live price on Prices ▸ Studios and Prices ▸ Suite) follows one rule: supersede, never edit. A draft can be edited and deleted. Publish makes it live, and a live offer is read-only. Replace with a new price retires the live offer and creates its successor. So to change a studio price that is already live, save the new monthly price on Prices ▸ Studios (it reaches the draft only), then press Replace the live price there.

Offers are yearly only. The panel has no billing-period choice: it states Yearly, and every create, update or replace writes a yearly offer (a monthly or one-off period is refused). The price list, the forecast and the pricing rules skip any older non-yearly offer, so a monthly figure is never read as a year's price. An offer saved before this rule still shows its own period on its card.

What customers see. A customer's shop shows live offers only. Until at least one studio or the Suite is live, the Shop's Licences view says Licence prices are being finalised. Contact us and we will set up your plan. A platform admin opening the tenant shop also sees drafts (live first, otherwise the draft), with a banner Preview — draft prices. Customers cannot see or buy these until they are published.

Prices ▸ Currency

  • Shop currency — Sell in EUR or USD (platform_settings key shop.currency, audited shop.currency.set). The whole shop sells in this one currency: licences, the Suite, PowerUps and credit packs all show it, and the cart has one total.
  • Licence list per currency — read-only. Studios and the Suite show their first band per process per year (more processes pay less); PowerUps show their flat yearly price. Each row shows its status (Draft / Live / Retired) or No price, and its name leads to the view where that price is changed.

AIMS Credits — /admin/platform/credits

  • Run prices — what a run costs: base + per process × number of processes, for every agent of the registry, a new one included. An agent without a price charges nothing until it has one; the page says so.
  • Licence grants — what one licensed process of a product grants in AIMS Credits per month (products.credits_per_unit). This is the only place where it is changed; Prices ▸ Studios and Prices ▸ Suite show it. The one-off credits of the Community licence are under Prices ▸ Community; a link leads there.
  • Packs — one-off top-ups (credit_packs, credit_pack_prices). Per pack: ID (lowercase, digits and dashes; fixed once saved), Name, Credits, a Price per currency (blank = not sold in it), Order, On / Off and Highlighted. A pack is sold only while it is on and has a price in the shop currency. A pack someone has paid for is always granted, even if it is switched off or repriced later. Audited shop.credit_pack.create / shop.credit_pack.update.
  • Videos — what an explainer video and a stage results video cost in credits (formerly on Marketing ▸ Explainers).

Invoicing — /admin/platform/invoicing

Platform ▸ Invoicing. Which entity issues our invoices, how they are numbered, the tax rates they use, and the invoices of tenants that no longer exist. Three views: Issuer, Tax and Former customers (?view=issuer|tax|former). Viewing needs platform read; every save needs platform manage and is audited. The whole shop and every Enterprise contract invoice through this one page: until an issuer profile exists, no invoice can be issued and a paid shop order is not fulfilled.

  • Issuer Profile. The legal entity on every invoice: Issuer key, Legal name, address, Country, VAT ID, Tax number, Commercial register, Managing directors, bank details (IBAN, BIC, Bank name), Contact email, Footer line, VIES requester VAT ID (the number used to check buyers' VAT IDs), Number prefix and Payment terms (days). An issuer in the EU must have a VAT ID or a Tax number (it prints on every invoice); the save is refused without one. Save New Version stays disabled until every required field is filled; the line under it names what is still needed.
    • Versions. Save New Version never edits the profile in force: it starts a new version, in force from that moment. An invoice already issued keeps the version it was issued under. Do not remove or post-date the issuer while shop orders are open (see below).
    • The prefix locks. Numbers read prefix, year, six digits (AIMS-LLC-2026-000001) and the series restarts each year. Once an issuer key has issued an invoice, its Number prefix cannot change. To start a new series (for example when another legal entity takes over), save the profile under a new issuer key: its numbering starts at 000001, and German buyers then need no VAT ID only if the new issuer is German.
    • Prefix uniqueness. Two issuer keys cannot share a prefix, because invoice numbers are unique across the platform; the save is refused with Another issuer already uses this number prefix.
  • Tax Rates. Domestic VAT rate (%) is charged on sales to buyers in the issuer's own country (comma or point as decimal separator). US States lists sales tax per state: only Active states are charged, with their Rate (%); add a state with Add State and its two-letter code. Rates take effect for the next cart; the tax is decided when the buyer builds the cart and is fixed for that order. Have both confirmed by a tax advisor before go-live.
  • Former customers. Invoices of tenants that have since been deleted, kept for the books. A tenant's invoices are never deleted with the tenant; they move here, listed by number with the buyer as it was on the invoice.

Marking an invoice paid. Shop invoices are paid when issued. An Enterprise contract's invoice starts Open with a due date. On the customer page's Licences view, the Invoices grid has Mark Paid on an open invoice: enter the Payment date, the Method (Bank transfer, Card, SEPA direct debit) and a Reference (bank reference or payment ID). The invoice turns Paid; payment fields can only be set on an invoice that is being marked paid, and a paid invoice cannot be reopened. An open invoice whose credit notes add up to its whole net shows Credited (never Overdue) and has neither Mark Paid nor Credit Note: nothing is owed on it.

Credit notes. Credit Note on an invoice issues a correction: enter the Amount (net) (up to the invoice's net, less credit notes already issued) and a Reason, printed on the document when the amount is partial. The credit note is its own document with its own number (German label: Rechnungskorrektur, never Gutschrift), is e-mailed to the tenant's billing email with its own template, and leaves the original invoice untouched. Its tax follows the invoice's: a credit uses the original invoice's exchange rate, no new rate is fetched. A credit note is never marked paid. When a paid shop order cannot be fulfilled (a refund is due), a credit note is issued automatically.

Who receives an invoice. The tenant's billing email. When it is empty, a shop invoice goes to the user who placed the order, and an Enterprise invoice to the tenant's primary contact email (never to the platform admin who entered the contract). The recipient is fixed when the order or contract is created.

Operating notes. If an order is paid but no issuer profile exists, fulfilment fails closed (log line order_no_issuer, the payment webhook answers 500, nothing is granted) and Stripe retries for about three days: fill the profile, then the retry succeeds. The invoice PDF is rendered, and for a non-EUR domestic VAT sale the ECB rate is fetched, inside the fulfilment transaction.


6. Requests — /admin/platform/requests

What it's for. Platform ▸ Requests (formerly License requests) is the review queue for upgrade / new-product requests that tenant admins file with Request an upgrade on their own Admin ▸ Plan. It replaces the old mailto: stub with an in-app, cross-tenant queue.

The queue. Two views: Open (the default) and Done (?view=done). Pending requests sort first. Each row shows who asked (email), the tenant + workspace, the product, and — crucially — the delta: the current license values joined in next to the requested ones, so you see exactly what's being asked for.

Actions (audited, run under withPlatformAdmin because a request spans tenants and the reviewer has no workspace context of their own):

  • Approve — applies the requested change then closes the request, in one transaction. If applying the grant fails, the request is not marked approved (a tenant is never told "yes" without getting anything). A null on either axis means "no change" — the existing value (or a sensible default for a brand-new grant) is kept. The grant and the request-close commit together.
    • Pool-checked. The workspace's share is checked against the tenant pool first, like every other share write (assertShareFitsPoolTx). If it does not fit, the approval is refused with over_allocated and the request stays pending: Not enough is free in the customer pool. Grant the customer more first, or reject the request.
    • The share takes the tenant pool's end date.
    • Approving lifts a pause set by the customer's admin on that share (liftTenantPause), as a pool-checked resume.
    • A request for a Stage cannot be approved: Stages are never licensed on their own, so the write is refused (stage_not_licensable) and the reviewer sees You don't have permission to do that. Reject it, and grant the Studio instead.
  • Reject — closes the request without touching any license. An optional review note can be added.

Both are guarded on status = 'pending', so a double-click can't re-decide an already-closed request.

Enterprise requests. A tenant's Request Enterprise (shop, or the contract card on their Admin ▸ Plan ▸ Contract) lands in the same queue as a row labelled Enterprise. It is a request kind, not a product:

  • The panel shows the note: for a quote, the licences, the plan (Studios or OpsAim Suite) and the studios, then the message; for Call me first, the phone number and the message.
  • Its button reads Mark as handled instead of Approve. It closes the request and changes no licence: the deal itself is entered on the customer page's Enterprise Contract form (§4).
  • A workspace has one open Enterprise request; a second send updates it (no new notification).
  • Every platform admin gets an inbox notification Enterprise requested by {workspace} (in their newest workspace) and the license-requested email, which names the product Enterprise and lists the licences and plan, or the call-back phone, then the message.

Every request's panel has a link Open the customer's licences to the customer page's Licences view.


7. Agents — /admin/platform/customers/[tenantId]?view=agents

What it's for. Inspect and edit any tenant's AI agents (the per-studio agent prompts, tools, and model settings). The tenant equivalent is User Manual §9 ▸ Agents (Admin ▸ Agents); this is the cross-tenant version. There is no separate Platform agents page any more (formerly /admin/platform/agents): a workspace's agents are a view of its customer page.

Flow (two hops):

  1. Platform ▸ Customers ▸ Workspaces — the only cross-workspace listing here; it lists every workspace (with its customer and agent count) through the audited superadmin bypass. A row's Agents count opens the next hop.
  2. The customer page's Agents view (/admin/platform/customers/<id>?view=agents&workspace=<workspaceId>) — from here the agents are read/edited RLS-scoped to the target workspace (withTenant(target)). Each agent shows a draft badge (if any) and its published version, following the same draft → publish → versioned workflow tenants use. Open an agent (/admin/platform/customers/workspace/<workspaceId>/agents/<key>) to edit it. The view also links the customer's own Agent team (/admin/platform/customers/<id>/agent-team, formerly Customer agent teams).

This split is deliberate: the cross-workspace listing is the audited platform read; editing one workspace's agents then runs inside that workspace's row-level security.

Mining's agents (mining.*) — what an edit here changes, and one that can break ingestion.

keyNameWhat it does
mining.map-columnsColumn MapperReads a sheet's column statistics and proposes which column is the case id, the activity, the timestamp, the lifecycle and the performer. Runs once per import preview, synchronously, while the customer waits.
mining.name-activitiesActivity NamerTurns raw log tokens into business names and matches them to steps in that workspace's Atlas map. Seeded; not yet called by any code.

There is no third Mining agent. mining.analyst was seeded by migration 0096 and wired up in M5; it was removed a day later by 0125 in favour of the shared Analysis agent (lens.analysis — the same key Lens, Score and Forge use, with mining as its fourth stage). If you are looking for the prompt behind the memo on a Mining run, it is that agent. ⚠️ It is one key for four stages: an untouched seeded row lets each stage use its own default instructions, but the moment you edit it, what you wrote is used on Lens, Score, Forge and Mining alike.

⚠️ The Column Mapper's timestamp vocabulary is load-bearing. Its prompt instructs the model to answer with an LDML pattern (yyyy-MM-dd HH:mm:ss, dd.MM.yyyy). The loader parses that vocabulary and rejects everything else — so editing that instruction to mention strftime (%Y-%m-%d), the bare word ISO-8601, month names (MMM) or zone abbreviations (CET) means the customer confirms a mapping and then no row of their log loads. Migration 0097 exists because the seeded v1 prompt had exactly that defect. packages/mining/test/timestamp-contract.test.ts guards the code default; it cannot guard a prompt edited here.

Editing either of these follows the normal draft → publish flow and takes effect on the next run. Both are region-resolved, so the model is never chosen here — data residency decides it.


8. PowerUps — /admin/platform/customers/[tenantId]?view=licences&sub=powerups

What it's for. Grant, revoke, and activate PowerUps for any workspace. There is no separate Platform PowerUps page any more (formerly /admin/platform/powerups): a workspace's PowerUps are on its customer page, under Licences ▸ PowerUps. A PowerUp is a capability add-on — a product_addons row with carries_allowance = false. There are five: Versioning & Archiving (atlas-versioning), Process Library (process-library), Reports (reports), AI Master (ai-master) and White Labelling (white-label). The Stages (atlas, lens, score, forge, mining, …) are product_addons rows too, but they are not PowerUps and are not granted through this view: a Stage comes with its Studio and is never licensed on its own. See §13 for the full model.

Flow (two hops), like Agents:

  1. Platform ▸ Customers ▸ Workspaces — every workspace with the PowerUps it holds, via the audited bypass. A row's PowerUps cell opens the next hop.
  2. The customer page's Licences ▸ PowerUps (/admin/platform/customers/<id>?view=licences&sub=powerups&workspace=<workspaceId>, with a workspace chooser) — each PowerUp shows a Licensed / Not licensed badge, Grant or Revoke, and an Activate switch. Mutations run RLS-scoped to the target workspace and re-check platform manage.

The actions:

  • Grant (grantAddonLive) — licenses the PowerUp and switches it on, in one step: it writes the workspace_licenses row (source: admin_grant) and sets its entitlement on. A PowerUp that lists a Studio in requires can only be granted where that Studio (or a live Suite) is licensed; otherwise Grant is refused with requires_not_licensed (assertAddonGrantable): This PowerUp needs a product this workspace doesn't hold yet. A Stage key is refused outright.
  • Activate / Deactivate (platformSetAddonActivation) — flips the switch only. Deactivate keeps the licence, so Activate turns it back on; activating an unlicensed one returns not_licensed.
  • Revoke (revokeAddonLive) — clears both: the licence ends (expired) and the switch goes off, so a later Grant starts from nothing.

A PowerUp is live only when its own licence is live, its switch is on, and every key in its requires is live (§13). Versioning & Archiving and Process Library require processAIMS (process-intelligence); a workspace that lets processAIMS lapse loses them, even though it still holds them.

8.1 reports — the one PowerUp that gates an ACTION, not a screen

Decided 2026-08-13. 🟡 Recorded here ahead of the implementation, so nobody grants it expecting the old behaviour.

Every other PowerUp gates access to a capability: hold it and a screen does more. reports will gate a single action — export. Building and reading reports and dashboards on screen becomes free to every workspace, licensed or not; producing a PDF, PPTX, DOCX or XLSX is what the licence buys.

What this changes for you when you grant or revoke it:

Without reportsWith reports
Create, edit, arrange documents✅ free✅
Read them on screen, set a default dashboard✅ free✅
Export to PDF / PPTX / DOCX / XLSX❌ — the button explains and links to /powerups/reports✅

Revoking it does not delete anything. A workspace that loses the licence keeps every document and can still read and edit all of them; only the export stops. That is deliberate — a licence lapse should not take a customer's own work away from them.

IT DOES NOT WIDEN ACCESS TO STAGE DATA, and this is the question worth being sure about. Studio licences are enforced independently of reports: each block asks isKeyActive for its own Stage, and a Stage resolves through its Studio. A workspace without processAIMS can build a Lens dashboard and will see placeholders naming the Stage where the numbers would be — never the numbers. Making the container free never makes the contents free, so granting or withholding reports has no bearing on what stage data a tenant can read.

Support consequence. "I can't export" is now a licence question with a self-service answer: the export menu and the Print preview link the user to /powerups/reports, which already routes them correctly — Buy for an admin where the shop carries a SKU, Request for an admin where it does not, who-to-ask for a non-admin, and "license the Studio it requires first" where buying would unlock nothing.

What the tenant sees the moment you grant it. The customer's /powerups catalogue lists every registered PowerUp whether or not they hold it, so a grant does not make one appear — it flips its badge from Get to Active and points its button at where the PowerUp works. Two consequences worth knowing before you register something:

  • A newly registered PowerUp shows up on its own. /powerups loops over the registry, not over a hardcoded list, so a product_addons row added by migration is visible to every tenant without a redeploy — named from its product key (report-explorer → "Report Explorer") and carrying only generic copy until someone adds it to packages/shell/src/powerups.ts with a real name, description and worked samples. Register a PowerUp and it is on the shelf that day, described or not.
  • The shop can only sell what the catalogue carries. The detail page offers Buy this PowerUp (→ /admin/shop) only when apps/web/lib/shop/catalog.ts holds an addon SKU whose addonKey is that product key; today all five PowerUps have one (atlas-versioning, process-library, reports, ai-master, white-label). Without a SKU the page offers Request this PowerUp (→ the tenant's Admin ▸ Plan, /admin/plan, which lands in your queue at §6) instead. In the shop itself a PowerUp is added to the yearly plan on the Licences view (Admin ▸ Shop ▸ Licences) and priced from its yearly offer (§5), not from the SKU's code price.

Script alternative. packages/db/scripts/grant-addon.mjs grants a PowerUp from the command line (reads DATABASE_URL_OWNER; --prod targets production). It refuses a Stage key, and it refuses a PowerUp whose required Studio (or the Suite) is not licensed on that workspace:

node packages/db/scripts/grant-addon.mjs --workspace-name un1010 --addon atlas-versioning
node packages/db/scripts/grant-addon.mjs --workspace-name un1010 --addon atlas-versioning --activate

Without --activate it only licenses the PowerUp and does not switch it on; the tenant admin switches it on under Admin ▸ Plan ▸ Licences. With --activate it also sets the switch, so the PowerUp is live at once. Like the customer page, it counts a live Suite as the required Studio.


9. Taxonomies — /admin/platform/taxonomies

What it's for. Curate the shared industry and department vocabularies that tenant users tag their Atlas processes (and Process Library templates) with. It's a global reference table (no RLS): tenants read it; only the platform write path mutates it, so these actions run on the owner connection and re-check platform manage.

The page has two views, Industries (the default) and Departments (?view=department), each the standard admin DataGrid (search + sortable columns + sticky header + pagination) of its own terms. Each term has a label, an optional description, a sort order, and an active flag. An old ?kind= link opens the view it names.

Key actions: create a term; edit a term; toggle active/inactive inline (inactive terms stop appearing in tenant pickers but existing tags resolve by label); and delete a term (type-to-confirm).

Because references are stored by term id, renaming a term reflects everywhere the label is shown — Process Library rows resolve their industry/department labels dynamically from these terms.


10. Process Library — /admin/platform/process-library

What it's for. Curate the global template catalog licensed tenants browse and load from inside Atlas (the tenant side is the Library start option in User Manual §6.1, available with the Process Library PowerUp). Backed by the process_templates table (migration 0020_process_library), a global, un-RLS'd catalog whose rows are validated ProcessGraphs + import meta. Platform-only writes; tenants only SELECT published rows.

Authoring is import-only. You don't draw templates here — you upload a JSON or BPMN interchange file. The graph is parsed and validated client-side (same pipeline as the studio import), then a publish dialog lets you edit the meta before it lands:

  • Title and description (with a Generate with AI button that drafts a description from the graph).
  • Industry and department, chosen from the active taxonomy terms (governed selects, by id).
  • A visible publish-progress pipeline (load → quality-check → import) runs the import and refreshes.

Two views. Templates is the catalog below. Requirements (?view=requirements) is the requirements matrix of one industry; it asks for the industry first. Anyone without platform manage reads both.

The manage table (shared DataGrid, search + industry/department/status facets, bulk selection) lists every template of any status. Per row you can: edit meta, re-upload to replace the graph, hide / unhide (status published ↔ hidden), and delete. Bulk actions publish, hide, or delete selected rows. Every mutation is an audited server action re-checking platform authority.


11. Health — /admin/platform/observability

What it's for. The cross-tenant operational read — "is anything wedged?" It aggregates across every tenant, so it runs on the owner connection and is force-dynamic (a cached snapshot of health is worse than none). Every metric is fail-closed at the source: a broken query yields zeros / empty rather than a 500. Authorization lives on the page: platform read.

The page has four views (?view=), and only the open one is read:

  1. Events — the outbox that drains domain events: queue depth (unpublished rows), oldest unpublished age, and published in the last 24h. Depth climbing while the oldest age grows is the classic wedged-relay signal. Below it the dead letters, events that exhausted their retries: the open (unreplayed) count, the relay lag, and a table with a reason filter, Older / Newest paging (?dlReason=, ?dlBefore=) and a per-row Replay action (audited).
  2. AI (30 days) — per day / region / model: runs, completed, input & output tokens, and p50 / p95 latency. This is where you watch AI spend and slowness by region and model.
  3. Activity (30 days) — action counts per day, from the audit log.
  4. Integrations — stat tiles over outbound reach and API footprint: webhook subscriptions (total / enabled), notification channels (total / enabled), and API keys (active / used in the last 7 days), plus a small channels-by-type table. The line above them counts the failed notification deliveries of the last 7 days and opens the delivery log (Platform ▸ Messages ▸ Deliveries).

Where the product-analytics numbers come from. The @opsaims/observability package is a vendor-agnostic seam over PostHog, defaulting to the EU host (https://eu.i.posthog.com) for data residency. It is config-gated — with no POSTHOG_KEY set, every capture is a no-op — and fail-soft, so it never throws into the path it's watching. (The AI and Activity views above read the platform's own tables via the owner connection; PostHog carries product-event/error capture.)

11.1 Release tests — /admin/platform/release-tests

What It Is For. The guided test run for each release, inside the product. Every check a tester works through before a release goes to main — what to do, what they should see, and why it matters — with Pass, Fail and Skip buttons and a note. It replaces passing the standalone test-run page around: results now live in the platform database, tied to the build they were made on. It sits under Operations, beside Health, and Platform ▸ Overview shows its release readiness.

The Page. Two views: Runs (the tests to work through) and Results (?view=results, the result sheet of the chosen run). The run bar and the readiness panel stand above both; switching views keeps what you are doing.

  • The run bar at the top. A run is one tester working through the tests on one build. Pick a run from the list (newest first, e.g. 2026.09.26 · develop@f24f54c · localhost:3100 · Udo · 26 Sep 14:05) or press New run on this build. The server records the build (commit and branch), the environment, the host, the release being tested and who is testing; none of it is typed in, so it cannot be wrong. When the build cannot be told (a local build without git), the run says "unknown build" rather than guessing. Without a run you can still read every test; the buttons stay disabled until you start or pick one.
  • The readiness panel. Whether the upcoming release is Ready for release or Not ready, with the rule in words, the counts (new tests, passed, failed, not run yet) and the blocking test IDs as links that jump to the test.
  • The sidebar follows the product. Start here, then the studios (processAIMS, transformAIMS), then Tenant Admin, Platform Admin and PowerUps, each as an accordion with its own done/total count — green when everything in it is done, red when anything failed. Under a studio are its stages (Atlas, Mining, Lens, Score, Forge, Twin), under an admin area its functions (e.g. Workspaces, Costing, Access and Roles; Tenants and Access, …, Release tests last), under PowerUps each PowerUp (Versioning & Archiving, Design, …). One that has no tests yet is listed greyed as No tests yet, so a gap in coverage is visible. The group you are in opens by itself; a group you closed stays closed while you tick results. Automated Pass comes last. The switch Only new in <release> hides every test that did not arrive in the upcoming release.
  • A stage, function or PowerUp opens as one page with all its tests, part by part — each part with its heading, a short lead and its own Copy smoke prompt; the page has one for all of it.
  • A test card shows its ID, title, a New in <release> badge where it applies, a Uses credits or Needs execAIMS tag where it applies, the reason it matters, Do and You should see. Press Pass, Fail or Skip; press the active one again to clear it. A note is saved when you leave the field; on a failure, say what you saw instead. Each result is saved at once; if the save fails the tick is taken back and a message says so.
  • Start here. Where to test, the licences and credits needed, the one rule for every test (a missing figure must say so — shown as 0 it is a FAIL), and the test process to build before starting.
  • Automated Pass. Let a coding session with a browser (e.g. Claude Code) run the checks. Choose what to cover — All checks (the default), Everything new in <release>, a studio, admin area or PowerUps, or one stage, function or PowerUp — and press Copy prompt; every part also has a Copy smoke prompt button for just that part. The prompt is generated from the tests themselves, names the site you are on, and tells the session the rules: never change production data, use a test tenant on platform pages, skip anything that uses credits, never guess, and answer with one line per check — ID: pass|fail|skip — what it saw. It carries Start here too — where, licences, credits, the one rule and the test process to build first — so a session is never sent to "the A–G fixture" blind. Each part is named by its key and adds its own brief: where to start, the data it needs, what to leave alone and what usually goes wrong there. A part that creates something names it Smoke <part key> and clears a leftover from an earlier pass first. Subagents. Each part is marked parallel (it only reads, or only changes data it creates itself) or serial (it changes something other parts read — the rate card, cost catalog or lever defaults, which mark Lens, Score and Forge runs outdated; workspaces, licences, platform settings; the shared test process). When two or more parallel parts are in scope, the prompt tells the session to hand each to its own subagent, at most four at a time and each in its own browser context, then to run the serial parts one after another. The line beside the check count says how the pass will be split. Paste its answer into Paste the answer and press Record: each line is recorded on the current run with the note marked [smoke], so an automated verdict is never mistaken for a person's. Lines that name no test are counted and ignored.
  • Results (the second view). The run as text to paste into a message or an issue — build, environment, tester, readiness, then failures and skips with their notes — with a Copy button.
  • Waiting for merge. A part whose feature is still on a branch (e.g. the role-based access work on feat/rbac-cedar) says Waiting for merge: <branch>. Its tests can be read and recorded — useful when a tester runs that branch — but they never count towards readiness, so a release cannot be held back by work that is not in it. The marker is removed when the branch merges.

A test can be linked: ?section=<part> opens a part (?section=sheet, from an old link, opens Results), and #<test ID> (e.g. #PUL-16) opens that test's part and scrolls to it.

The Readiness Rule. A release is ready when every test that arrived in it has passed on this build, and no test — new or old — has failed. "Arrived in it" means the test's since equals the upcoming release (the catalogue's release not yet marked released). A skip of a new test blocks, because a skip is not a pass; a skip of an older test does not. Tests in a part waiting for merge do not count at all. The rule is one pure function (apps/web/lib/release-tests/readiness.ts), shared by the page and the result sheet.

Where the Tests Live. In the repository, in apps/web/lib/release-tests/catalogue.json, beside the code they test — not in the database, and not editable from this screen. A release adds its tests to that file with since set to the new release label, in the same change as the feature. The test content is written in English in every language; only the page around it is translated.

Who Can Use It. Viewing needs platform read. Starting a run and recording results need platform write; without it the page is read-only and shows no buttons.

11.2 Backups — /admin/platform/backups

What It Is For. Encrypted backups of the production and develop databases, on a schedule or on demand, and the way back: a restore that always goes through a preview first. It sits under Operations, beside Release tests. Viewing needs platform read. Schedules, Back up now and pins need write; deleting a schedule or a file needs delete; every restore action (request, preview check, promote, cancel, undo) needs manage, which only a superadmin has. A principal in View As is always refused. A tenant admin never sees this page, because a production backup holds every tenant's data. If the deployment lacks its backup settings, the page still opens and names the missing settings (names only, never values).

The Three Views (?view=).

  • Schedules. One row per schedule: name, database (Production or Develop), when it runs in words, next and last run, and an On switch that takes effect at once. New schedule opens a side panel (name, database, repeat, time zone, copies, days to keep). A pattern that runs more than once an hour is refused before it is sent. Back up now queues one backup immediately; it appears under Backups when it finishes. Schedules run on production only; on any other deployment use Back up now. Until go-live, production checks its schedules once a day, at 20:20 UTC (03:20 in Bangkok), so a schedule runs at the first daily check after its time; an engineer can start an extra check from GitHub. While a run is queued or running, its status chip and the Back up now button spin, Back up now stays off, and the page refreshes itself every 15 seconds until the run ends. A run that has sent no word for 2 hours is marked Failed (stuck) the next time anyone opens the page, so a runner that died can never hold a schedule. The last-run cell counts failures in a row; the superadmins get one email on the second failure in a row. Deleting a schedule keeps its files, which expire on their own dates.
  • Backups. Every backup file: database, kind (Scheduled, Manual or Safety), size, created, expires. A file can be pinned (kept until unpinned), downloaded (the file stays encrypted; the app never decrypts it) or deleted (Safety files cannot be deleted here). Restore… on a file starts a restore from it.
  • Restores. Every restore, newest first, with its scope, mode, backup, database and status. New restore opens a three-step wizard (Backup, Scope, Review). Only the whole-database scope works today; One tenant shows as "not available yet".

Where the Files Live. Every backup is one file in the Cloudflare R2 bucket opsaims-db-backups (EU), under <database>/<year>/<month>/, for example prod/2026/10/prod-2026-10-19T0614Z-57281b23.dump.age. The name holds the database, the start time in UTC and the first 8 characters of the run's id; the size matches the size in the view Backups. The type is application/vnd.age: the file is a pg_dump encrypted with age, and only the backup private key (held by the restore workflow, never by the app) can open it.

Important: never delete, rename, move or replace a backup file in the R2 console. The app tracks each file by its name and its SHA-256 hash, and deletes it itself when it expires. A file changed or removed behind the app's back makes that backup fail its hash check, or vanish, exactly when a restore needs it. To keep a file longer, pin it in the view Backups; to remove one, delete it there.

When a Backup Fails at Once. Open the run from Last runs and its GitHub log. backup runner: fetch failed in the first second means the runner could not call the app back: the deployment's BACKUP_APP_ORIGIN must be its own address (https://app-preview.opsaims.com on develop, https://app.opsaims.com on production), and that address must be listed in BACKUP_ALLOWED_ORIGINS on the db-backup GitHub environment. A changed setting takes effect with the next deploy of that environment.

Restoring a Database. A restore never goes straight to the live database. It goes to the Restore Preview first, and it reaches the live database only after a person has checked that preview.

  1. Request. Pick a finished R2 backup and press Request restore. Nothing changes on the target yet. Only one restore can be active per database at a time, and scheduled backups of that database wait while it runs.
  2. Stage and build the preview. A GitHub workflow checks the file's hash, decrypts it as a stream into a fresh Neon branch (24 hours of life), brings it to the schema level of the commit deployed on the target, and fills the preview database. The detail page shows the steps (Request, Stage, Build preview, Verify, Promote, Clean up) and a report: schema levels, rows per table now against after, the newest timestamps, and any pg_restore warnings.
  3. Verify. Open preview goes to restore-preview.opsaims.com. Sign in there and look at the data. The preview sends no email, webhooks, AI or Stripe calls, runs no crons, and only superadmins and staff can sign in. Two admin actions can still reach vendors from the preview: the system catalogue refresh (a document fetch) and the model price sync (a price request only, no tenant data). Avoid both there. A non-admin who signs in on the preview gets no workspace. The preview project must not hold the production keys for email, AI, Stripe, cron, file storage (BLOB_READ_WRITE_TOKEN and the branding and documents variants), DATABASE_URL_MASTRA, PostHog, the helpdesk ingest secret, or any BACKUP_* or GitHub token: a file upload or delete there would hit production's store. Then press I checked the preview.
  4. Promote. The button stays off and shows which gate failed. All four must pass: the preview was checked less than 24 hours ago for this restore; the schema level is unchanged since staging; you typed the target name (for example prod); no other restore is active on the target. For production a GitHub approval on the restore environment can be required as well ("Waiting for approval in GitHub").
  5. The two safety nets. Before anything changes, the runner takes a fresh encrypted full dump of the target to R2 (a Safety file, hash verified) and exports the backup tables and the newer audit rows. If either fails, it stops and the target is untouched. The second net is Neon's own: the swap itself makes Neon keep the current branch as before-restore-<id>. That copy is created as part of the swap, so a failure there is the "promote_uncertain" case below. After the swap the runner writes the exported rows back, so the restore does not erase its own history.
  6. After the promote. The banner on every admin page says the database is being restored and may be briefly unavailable, "up to 30 seconds". In the spike the root restore took 4 seconds with no failed connections. The preview shows the production data after a promote. Clean-up deletes the staged branches that did not serve a promote. A staged branch that served a promote stays as a permanent ancestor of the target, because Neon makes the restored branch its child. This is expected, not a leak. Such a branch keeps its compute endpoint; you may delete those endpoints (never the branches) in the Neon console to save quota.

Branch Protection During a Promote. A target branch may be protected in Neon. The runner switches the protection off when the target branch is protected (production, and develop if it is), restores, and switches it on again at once. If that last step fails, the restore stays done and a red banner appears: switch protection on by hand in the Neon console.

Undo for 90 Days. After a promote the detail page offers Undo restore for 90 days. It starts a new restore from the preserved branch before-restore-<id> and goes through the same preview and gates. After 90 days the preserved branch is listed for manual clean-up instead of being deleted. A preserved production branch cannot be deleted through the API, so clean-up is manual in the Neon console and in Vercel. After an undo, the undone restore's before-restore-<id> branch is the undo's ancestor (the undo's staged branch is its child), so it can never be deleted.

Cancel. A restore can be cancelled until the promote starts. Its staged branch is deleted.

If a Promote Stops Half-Way. Look at what the detail page shows, then follow the matching case. Warning: restoring a database from a preserved branch discards every write made since the swap. Do it only in case b, and only after the check.

  • a. Failed, and the error is one of these: nothing on the target changed. Fix the cause and request a new restore. hash_mismatch: the backup file does not match its stored hash; use another backup. preview_replaced: the preview no longer shows this restore (another restore was built since); build it again. schema_changed: the target's schema level moved since staging; request a new restore. carry_over_incomplete: the export of the backup tables did not hold this restore, so the runner stopped. A safety dump or its hash check failed: the runner stopped before the swap. gate_failed: one of the four promote gates no longer passed when the runner looked.

  • b. Failed with promote_uncertain (the error names the preserved branch before-restore-<id>). The restore call to Neon errored and before-restore-<id> does not exist, so Neon refused the request before any swap and the target still holds its old data. When the call errors but before-restore-<id> does exist, Neon made the swap: the runner waits until Neon shows it finished, then imports and finishes normally, and the restore ends Done. Check that the target's protection is on; the runner switches it back on, but look. Then request a new restore. Only if the target holds broken or partial data, ask a superadmin or an engineer with Neon console access to restore it from before-restore-<id>.

  • c1. The restore vanished from the page after the promote run went red. The import of the backup tables failed after the swap. The database is restored, but the restored database carries the backup's own restores table, so this restore no longer exists there: it is missing from the list, its detail page gives a 404, there is no amber note and no lock, and scheduled backups resume. The backup history (backup_jobs, backup_runs, restores) and the audit rows newer than the backup are on before-restore-<id>. Do not restore the whole database from that branch: it would undo the restore and lose every write since the swap. Pause the backup schedules first, or the next scheduled backup records the gap. An engineer then copies the rows back from the preserved branch.

  • c2. Stuck in Promoting, with the amber note "No report from the runner for N hours". The app refused the runner's report after the swap. Nothing is missing: the data and the backup history were imported. The restore row stays in Promoting and keeps the one-restore lock (it pauses scheduled backups of that database) until a superadmin settles it. Check the GitHub run log first. The same page shows two more cases where the runner stops red on purpose and reports nothing, because it cannot know the target's state: the run log says "state unknown, nothing reported to the app". Either Neon did not show the restore as finished within about 20 minutes (the backup tables were not imported yet), or the restore call errored and the lookup of before-restore-<id> failed too. Compare the target with before-restore-<id> in the Neon console. If the swap happened but the backup tables were not imported, an engineer first copies the backup tables and the newer audit rows back from the preserved branch (as in c1).

    Then settle it on the detail page. Settle Stuck Restore appears for a superadmin once the restore is in Promoting, Promoted or Cleaning up and the runner has sent nothing for 3 hours. Choose what happened, type the target name and press Settle restore. Swap happened marks the restore Done: it gets its promote time, the 90-day undo window and the preserved branch, like a normal promote. No swap marks it Failed with the error settled_manually; only a restore still in Promoting offers it, because in Promoted and Cleaning up the runner has already reported the swap. Either way the lock is released, scheduled backups resume, the banner clears and the settle is written to the audit log. If the runner reports in the meantime, the button answers that the restore moved on: refresh and look again. Before you choose Swap happened on prod, check in the Neon console that the target branch is protected again: a runner that stopped without a report never raises the red box of case d, so only the run log says when protection stayed off.

  • d. Red box "Neon branch protection could not be switched on again". The restore itself is done. Switch the branch protection on again in the Neon console.

Develop Drill. A restore on develop works the same way and is the fire drill. It fails at the start with schema_ahead_of_preview when develop's schema is ahead of main's newest migration: run the drill after the next release. The first real restore also needs the restore workflow on main, which arrives with a release. Production gets its restore settings (the Neon key, BACKUP_RESTORE_PREVIEW_URL and the db-restore-promote GitHub environment) only after a develop drill has passed, so until then production says restores are not set up. That is on purpose, not a fault.


12. Systems — /admin/platform/systems

The shared, platform-curated reference of the business systems customers actually run — SAP, Salesforce, QuickBooks, ServiceNow. A tenant adopts an entry into their own registry (User Manual §9 ▸ Systems) rather than describing SAP from scratch, and the entry then carries into their process maps and their mining feeds.

Each system holds, per release: what it is and who makes it; the modules it ships; the connections it offers (API, file export, database, webhook) and what each can actually deliver; the exports you can get out of it and the fields on them; the transactions / object types it records; and the source URLs every one of those facts was read from.

The one rule that governs this screen

Nothing is entered that was not read from the vendor's own documentation. Not "SAP obviously has purchase orders" — the page, the URL, the date. A model's recollection of a product is not provenance, and a catalogue that mixes remembered facts with sourced ones is a catalogue where no fact can be trusted, because none of them is labelled. Every row carries where it came from, and a trust indicator on the system says how much of it is sourced.

Never enter a customer's own transaction codes, field names or export layouts here. This catalogue is shared by every tenant. Customer-specific detail belongs in that customer's own registry, which is workspace-scoped and invisible to everyone else.

The two Publish buttons, and why they are different

They sit on the same page and do genuinely different things — this is the part that catches people:

  • Publish the system (the product) — makes the entry visible to tenants at all. Until this, nobody can adopt it.
  • Publish a release (the version) — marks one specific version's content as reviewed and current. A system can be published while a newly-added release is still being worked on.

Publishing the product does not publish a release, and publishing a release does not publish the product. A system published with no published release is adoptable but has nothing to adopt.

Check for a new version

On a system's page, Check for a new version re-reads the vendor URLs already recorded against the entry and reports whether the vendor now documents a newer release. It answers one of three ways, and the third is the important one:

  • A newer release exists — you are offered a new version record, seeded from what was read.
  • Nothing newer — the entry is current as far as the vendor's own pages say.
  • Cannot tell — no page could be read. This is reported honestly rather than as "up to date": the common cause is a vendor documentation site that renders entirely in JavaScript, so the fetch returns a megabyte of HTML and sixty characters of text. A silent "no change" there would be the catalogue telling you it had checked when it had not.

Trust and provenance

A system shows how well-sourced it is. Treat a thin entry as a draft: adopting it hands a tenant a skeleton, and a tenant who verifies a skeleton has verified nothing. The provenance rule above is what makes the trust indicator mean anything.


12a. Messages — /admin/platform/messages

Everything OPSAIMS sends: emails and in-app notifications, and the legal texts people accept. Five views:

ViewWhat it holds
EmailsEvery email by purpose, its switch and its editor; the email footer
In-app (?view=in-app)The notification catalogue: the one place a notification is switched off or on, its channels, and the edit of its text
Deliveries (?view=deliveries)The log of what was sent where, with Retry
Encryption (?view=encryption)Stored channel URLs and webhook secrets, encrypted once per environment
Legal (?view=legal)Terms of Use and Data Processing Agreement: versions, publishing, the acceptance export

People with platform read and no manage see every view and no form or Save. The addresses the page had before (/admin/platform/communications/…) lead to the matching view.

Emails

Pick a group in the row below the views; each shows how many messages it holds.

HeadingGroupWhat is in it
AccountLogin / Sign Up / DeleteSign-in link, password reset, email confirmation, account deleted
AccountWorkspace & OnboardingWorkspace invitation, welcome
ProductLicensing & TrialsLicence requested / activated, trial ending / ended
ProductTrace EmailsTrace invitation, invitation removed, assignment
ProductNotification DigestThe unread-notifications summary
MarketingMarketing LeadsLead report, new-lead alert

Pick a language (EN, DE, FR, ES) at the top right. The table shows each message once:

  • On — switches a message off or on for that language. The switch only works for a message you have edited (an unedited message sends the built-in copy; open Edit to take it over first). Sign-in link and Password reset are locked on (shown with a lock): without the sign-in link and password reset, people who lose access cannot get back in.
  • Trigger — the event that sends it. Green dot (Live) = sent today. Amber dot (Not connected yet) = the email exists but nothing sends it yet (Email confirmation, until sign-up confirms addresses).
  • Copy — "Code default" or "Edited · v3".
  • Edit — opens the editor. "Send test email" there sends the message, with the footer, to the address you type in.

The last entry of the group row. One footer per language, written in Markdown — usually the company's legal name and address. It is added under every email in that language, including ones a workspace has branded. Empty means no footer: emails look exactly as they did before. Remove Footer deletes it for that language; a language without its own footer uses the English one.

A password reset signs the person out in every browser and cancels their unspent sign-in links. Trace device tokens are not revoked.

Channel Encryption

Messages ▸ Encryption (/admin/platform/messages?view=encryption). Workspace chat channels (Slack, Teams) and developer webhooks are stored encrypted: the channel URL and the webhook secret are the credentials, so whoever reads them can post into the channel or sign fake webhooks. Everything saved since Notifications Phase 0 is encrypted on save. Rows saved before that stay in plain text until this view encrypts them, once per environment (production and preview).

The view shows counts only, never a URL, secret or channel name:

RowMeaning
Channels / Webhook subscriptionsHow many exist
… still in plain textWhat Encrypt now will encrypt
Values this key cannot openMust be 0. Anything else means two keys are mixed: nothing is written, call engineering
Retired Teams connectorsOld Office 365 connector URLs; their workspace admins get a notice to add a Workflows URL

Encrypt now (platform manage) encrypts with this environment's own key and writes an audit entry. Running it twice is harmless: encrypted rows are skipped, and a row that changed during the run is left as it is. Press it only after the release has run stably for a while: rolling the code back after encryption would make every encrypted channel stop sending until the release is restored. When production and preview both show Nothing left to encrypt, the view is removed again.


12b. Academy

Route: /admin/platform/academy.

Who may see the team and partner lessons of the Academy, and which courses and paths anyone may read without signing in. The page is for superadmins; other platform admins can open it but change nothing. The learner side is described in the User Manual, section 6a.2.

Audiences (the first view). Every course and path is for one or more audiences: customer, team or partner. Everyone is a customer. Team and partner are per-person grants held at platform level, not derived from workspace membership, so joining a workspace never gives them.

  • Add a grant: type the person's email, pick Team or Partner and press Add. An email that belongs to no user shows "No user with this email" and adds nothing.
  • Revoke removes one grant at once. Both actions are recorded in the audit log.

Public (?view=public). One switch per course and per path, named "Make title public". A public item can be read without signing in, which is how the marketing site will show a free course. Only a superadmin can turn a switch on or off.

  • An item can be public only if it includes the customer audience; a path also needs every one of its courses to include it. For any other item the switch is disabled with "Only items for the customer audience can be public.", and the server refuses the change even if the switch were forced.
  • Turning a switch to the state it is already in changes and records nothing.

Not here yet. The public showcase on the marketing site is a later phase, so a public switch does not yet publish anything on its own. Sessions with attendance and certificates are also later.


12c. Videos — /admin/platform/videos

Four views:

ViewWhat it holds
LibraryEvery published explainer video, withdrawn ones included
Jobs (?view=jobs)Every video in production, with its state and next action
Viewing links (?view=links)Links that show a video to people without a login, and who opened them
Runners (?view=runners)The machines that make the videos, their settings, and the data region

What a video costs a workspace is set on Platform ▸ AIMS Credits ▸ Videos; this page shows the prices and links there. On the partner edition the page is read-only.

Library

Every explainer the company shows, as cards or as a table (the switch is remembered with every other list). The list is the explainer catalogue: one row per public slug, withdrawn ones included and marked. Every explainer in it has both a page (a self-contained HTML walkthrough with its own player) and an MP4. Each row shows the title and summary, the audience it was written for (Investor, User, Client), its kind, its version, its length and how many investor links grant it (live and total).

  • Each card shows its kind: Motion video with AI images (made in New Explainer with generated images) or Classic OPSAIMS scenes (the scene kit; the eight imported explainers are all classic), as a pill on the preview. The Kind facet and table column filter and sort by it.
  • Each card shows the video's language with its flag (🇬🇧 English, 🇩🇪 German, 🇫🇷 French, 🇪🇸 Spanish). It is the language chosen in the interview (step 4), copied into the catalogue when the job is published; the eight imported explainers are English. The Language facet and table column filter and sort by it.
  • Each card shows the explainer's poster across its top. The poster loads through a link that is valid for one hour and is made new on every render. It does not play; use the buttons below it. A withdrawn row's poster is dimmed.
  • Video plays the MP4 in a dialog on the page. Page opens the walkthrough in a new tab. Both go through the platform area (platform read), which answers with a short-lived link on the explainer host (see "Where Explainer Pages Open" below). A withdrawn explainer still plays here.
  • How it was made opens the job that made the current version. An imported explainer has no job, so the button is not shown.
  • Search covers title, summary and slug. The facets are Audience, Language, Kind, Status (Listed or Withdrawn) and Granted (on a live link or on no link).
  • An explainer joins the list only when a job from New Explainer is published (below). There is no other way in: the old YAML registry (_explainers.yaml) and the folders it pointed at are gone. The eight explainers that were in it (opsaims and the seven Studio explainers) were imported once, by migration 0252, with their page, MP4 and poster. Investor links grant explainers on Platform ▸ Investors ▸ Access.

Publish, New Version, Withdraw and Restore

These actions need platform manage. Without it the buttons are not shown and the server refuses the request. Every one of them is written to the audit log.

Publish (a job in Review) opens a small dialog:

  • Public slug. Proposed for you: the slug a New version replaces; otherwise the job's slug without its eight-character id ending, if that is free; otherwise the job's slug as it is. Lowercase letters, digits and single hyphens, at most 80 characters, no hyphen at either end. The dialog checks it as you type. A slug that another explainer has, a withdrawn one included, is refused. The slug cannot change after publishing, because investor links store it.
  • Title and Summary, taken from the script. You can edit both.
  • Audience, taken from the interview answers.

Publish now checks everything again on the server. It copies the round's page, MP4, poster and page media into a new folder of the catalogue in the media bucket, then writes the catalogue row and moves the job to Published. The catalogue never points into a job's folder. If the copy fails, nothing points at the half-copied folder and the job stays in Review: press Publish again. A round without a page cannot be published; request changes so Claude makes the page. The new explainer is in the investor gallery and the link picker at once, with no deploy.

New version on a list row starts a new job that replaces that explainer. For an explainer made in the Studio, the interview starts from the answers and uploads of the job that made it. For an imported explainer it starts from the title, summary, audience, length and language; the rest is asked. From there it runs the same states and costs the same 5 credits. When you publish it, the slug stays the same and the version goes up by one. Every link that grants the slug plays the new version from then on, and the old version's page links stop working. The old files stay in the bucket as history.

Withdraw takes an explainer off the investor gallery and the link picker at once. A link that grants it plays nothing until it is restored; the grant itself is kept. The row stays in this list, marked Withdrawn, and its slug stays reserved. Restore brings it back. A New version published for a withdrawn explainer also restores it.

Edit text on a card changes the explainer's Title and Summary without a New version. The new words show at once everywhere the explainer appears: this list, the investor gallery, the link picker, the room, the deck and its public watch page. The video, the slug and the version stay as they are. A withdrawn explainer can be edited too. The title is required (at most 200 characters); the summary may be empty (at most 1,000). The change needs platform manage and is written to the audit log (explainers.edit_text) with the old and the new words.

Share Publicly

Share on a card opens a dialog. Create public link gives the explainer a fixed address on the explainer host, https://explain.opsaims.com/watch/<id> (on preview, explain-preview.opsaims.com). Anyone who has the address can watch the MP4 there in the browser's own player, with its poster, title and summary, without signing in and without the password wall. It is a plain video page: no script runs, the animated page is not shown. Copy the address with Copy link, or check it with Open. A shared card shows a Public badge.

The public page shows picks what the page holds around the film:

  • Video, title and summary (the default): the title as a heading and the summary under the video. The link preview in an email or chat shows the title and the summary too.
  • Video only: the video and nothing else. The browser tab and the link preview say OPSAIMS; neither the title nor the summary is on the page. Use it for a client when the summary is not meant for them.

You can change it before or after you send the address; the address stays the same. The choice is kept when you stop sharing and share again, and when you publish a New version. It is written to the audit log (explainers.share_text).

  • The id is random, so one address says nothing about another explainer and cannot be guessed. Search engines are told not to list the page, and it cannot be embedded in another site. It spreads only where you send it.
  • A New version keeps the address: it shows the newest film from then on.
  • Withdraw turns the address off (it answers not found); Restore turns the same address back on. A withdrawn explainer cannot be shared.
  • Stop sharing turns the address off for good. Sharing again makes a new address, so a link that was forwarded somewhere stays dead.
  • Sharing and stopping need platform manage and are written to the audit log (explainers.share, explainers.unshare). They need the explainer host to be set up (EXPLAINER_PAGE_ORIGIN); without it the dialog says the feature is not configured.
  • The page loads the video through a link that is valid for one hour and is made new each time the page is opened. A tab left open for longer plays again after a reload.

Use investor links (Platform ▸ Investors ▸ Access) instead when you need to know who watched, an expiry date or the NDA.

Data Region

Videos ▸ Runners shows the data region, one setting for the whole platform: US (the default) or Europe. It decides which services Claude's rounds use for every job submitted from then on:

  • US: Claude on the runner, AI images from Higgsfield and the ElevenLabs voice, as before.
  • Europe: Claude on AWS Bedrock in the EU, the voice from Azure Speech and the AI images from Google's Gemini through Eden AI's EU gateway. Gemini cannot make transparent backgrounds, so the runner cuts the motifs out itself; the images never leave it for that. No call goes to ElevenLabs or Higgsfield, the interview lists no ElevenLabs voices (Claude proposes Azure voices in the script round), and classic jobs have no film clips.

Rendering stays on the runner in both regions. A job keeps the region it was submitted under, so changing the setting never changes the services of a job in progress. Europe can only be chosen once a runner has reported that its EU services are configured; until then the button is disabled and the view says why (no runner has reported yet, or which runner lacks which service). Switching back to US is always possible. A Europe job that lands on a runner without its EU services fails at once and names what is missing; configure it on the runner (runbook docs/runbooks/explainer-rounds-on-ubicloud.md) and press Retry. Changing the region needs platform manage and is recorded in the audit log.

A job submitted under Europe shows a small Europe badge next to its title on the job page, in the list of open jobs, and on the explainer's row in the catalogue when that row comes from the job. US jobs show no badge.

Where Explainer Pages Open

Explainer pages and their media never open on the app's own address. They open on the explainer host: explain.opsaims.com in production, explain-preview.opsaims.com on preview and http://explain.localhost:<port> locally (the EXPLAINER_PAGE_ORIGIN setting).

  • The app checks the viewer first (platform read here; sign-in, the investor role and the NDA in the investor room; a live, verified link that grants the slug for a link reader). Then it sends the browser on to a link on the explainer host.
  • That link is valid for one hour and is made new on every open. It is not tied to a viewer. A link from before a New version stops working. An expired link shows "This link has expired. Open the explainer again from where you found it."; any other wrong link answers "not found".
  • The explainer host has no login and sets no cookies. Every page runs sandboxed: it cannot read cookies, open windows, send forms or reach the network beyond its own media.
  • Without EXPLAINER_PAGE_ORIGIN and EXPLAINER_VIEW_SECRET on the server, or without the media bucket, explainers are listed but have no poster, and Page and Video answer "not found".

Explainers on the Investor Portal

  • The link picker (Platform ▸ Investors ▸ Access, the link form): an accordion that opens onto the explainers as cards, each with its poster, length, summary and a Video button that opens the MP4 in a new tab. Tick the ones the link grants. Only listed explainers appear. A withdrawn one is left off, and a withdrawn slug is dropped when the link is saved.
  • The gallery (the investor room's Videos, signed in or through a link): each explainer the reader may see as a card with its poster, length and summary, and two buttons. Play opens the page and Video opens the MP4, both in a new tab on the explainer host. Through a link, each open writes one row to the link's view log; the link token is never passed to the explainer host.

New Explainer

New Explainer at the top of the page starts a new video. You need platform manage; without it the button is not shown and the server refuses the request. The page asks the questions, Claude writes the script and produces the video, and you approve each step on the page. The Jobs view shows every job with its state, title, kind, last change and the next action.

The Interview

One question per screen, with Back, Next and a progress bar. Each answer is saved when you move on, so you can leave a draft and come back to it. The words on the page follow your interface language. The video's own language is a separate answer.

  1. Kind. Motion video with AI images (the default) or Classic OPSAIMS scenes (the scene kit of the existing explainers, no AI images and no provider cost).
  2. Purpose and message. Explain, sell or draw attention, and what a viewer should know or do afterwards.
  3. Audience. Investor, client or user, and who exactly.
  4. Length, format, language. About 30, 60 or 90 seconds, or your own length up to 5 minutes. 16:9, 9:16 or 1:1. English, German, French or Spanish.
  5. Brand. The OPSAIMS look (the default), or a client brand with its colours, font name and logo.
  6. Own images. Optional uploads (logo, product photos, screenshots), each with a one-line note. PNG, JPEG or WebP, up to 10 MB each. SVG is not accepted.
  7. Material and facts. Optional text, links and figures. Give every figure its source and date. Links reach Claude as text only and are not opened: paste the facts and numbers that matter, and upload the product photos you want in the video.
  8. Voice. Every voice of your ElevenLabs account that speaks the video's language, as a grid of cards, each with a play button for its free sample. From nine voices on, a search field filters them by name, accent, gender or language. Not happy with them? More voices under the grid adds 24 further voices from the ElevenLabs Voice Library that speak the video's language, most used first, with the same card (name, a short description, accent, gender, language and the sample). Press it again for the next ones; it disappears when there are no more. Voices that cost extra credits (a custom rate) are left out. A library voice is picked and saved like an account voice; it does not have to be added to the ElevenLabs account first. You can also paste a voice ID, or choose Decide later. Skipped for a classic video without voiceover. In the Europe region neither list is asked (no ElevenLabs there, see Data Region).
  9. Summary. All answers on one page, each with an Edit link, and the price: Go costs 5 credits, and nothing is charged before you press Go. Submit sends the job to Claude.

Discard draft under the interview deletes nothing but closes the draft (it becomes Cancelled) after you confirm. Nothing was charged for a draft. The Jobs section lists only jobs still in progress: published jobs are rows of the list, cancelled ones are gone from it.

Job States

StateWhat you seeWhat you do
DraftThe interview, saved step by stepFinish it and press Submit, or Discard draft
Submitted"Waiting for Claude to write the script" and the command to copyWait for the runner, or start Claude (see below)
ScriptedThe script, the image plan, the voice, the provider cost estimate and "Go costs 5 credits"Edit the script or pick another voice and press Save script, then Go. Or Request script changes with a comment (back to Submitted, free), or Cancel
Approved"Waiting for Claude to produce" and the command to copyWait for the runner, or start Claude again. Cancel works until Claude starts production, and again once production has run for more than 6 hours without a result
ReviewThe video in a player and the actual provider costPublish (the dialog above), or Request changes with a comment (back to Approved, free)
PublishedThe explainer in the list with the othersNothing here. A change is New version on its list row
FailedThe reason Claude gave, what happened to the credits and where Retry leadsRetry, or cancel
CancelledThe job, closed, and whether the credits came backNothing

Summary for viewers and Open points. The script has two text boxes under the title. Summary for viewers is one or two sentences for the people who watch: Publish proposes it as the explainer's summary, and the gallery and the public watch page can show it. Open points is only for you: what Claude could not check (a link it could not open, a figure marked as an example, a missing logo). It is never published and never copied into the explainer. Read the open points before you press Go, and keep notes out of the summary.

Start Claude. You normally do nothing here: the job runner on the company Mac checks for waiting jobs every minute and starts a fresh Claude session for each round, one job at a time. Claude reads the job, does its round and writes the result back; the page then shows the next state. A round takes from a few minutes (the script) to an hour (the video). A classic job goes to /explainer with the same states.

While Claude works, the job page shows a progress bar with every step of the round. Each step is marked done, now or to do. Under the bar you see Claude's line on the current step (for example "image 3 of 6") and when Claude last reported. The page updates itself every 10 seconds.

Each step is an accordion. Opening one shows what Claude reported on that step and the files the step made: the images, the voice take, the word timings, the scenes, the stills and a draft of the video. Claude saves them in the media bucket under jobs/<id>/<round>/steps/ as each step ends, so you can watch the work on preview and production too, where the page cannot reach the runner's own folder. Once the video is ready, the steps stay on the page under How it was made while the video waits for review; a change request or a retry starts the next round with empty steps.

If the runner is off, open Runner off? Start the round by hand under the bar. It shows a command such as /motion-video job <id>. Copy it into a new Claude Code session, one video per session, so nothing from an earlier video leaks in.

The runner (platform staff). scripts/explainer-runner/install.sh installs it on a Mac as a macOS LaunchAgent, one per server whose jobs it takes (a target). All targets share one checkout of develop in ~/AIMS/opsaims-explainer-runner and run one round at a time. Every target needs a signed-in claude on that Mac with the claude.ai Higgsfield connector enabled (claude, then /mcp).

  • Local (3100): install.sh <app-env-file> [base-url]. Label com.opsaims.explainer-runner. The install writes EXPLAINER_JOBS_TOKEN into the server's .env.local if it has none; restart the server.

  • Preview or production: install.sh --target preview --app-env <env-file> https://app-preview.opsaims.com (or --target production https://app.opsaims.com). Label com.opsaims.explainer-runner.<target>. First set EXPLAINER_JOBS_TOKEN (at least 32 characters, for example from openssl rand -hex 32) on Vercel in that environment and redeploy. The install asks for the same value without showing it, or takes it from the EXPLAINER_JOBS_TOKEN variable. --app-env names a local env file the runner reads ELEVENLABS_API_KEY from.

  • Its own Claude account: add --claude-config ~/.claude-runner (any folder) to the install, or put CLAUDE_CONFIG_DIR=<folder> into the runner's env file in ~/.config/opsaims/. Sign that account in once with CLAUDE_CONFIG_DIR=<folder> claude, then /login, and enable the Higgsfield connector there (/mcp; the account must have Higgsfield connected on claude.ai). Your own Claude login stays as it is.

  • Speed: the launchd agent runs as ProcessType Interactive, so macOS does not throttle it (without it a 72 s video took 9 minutes to film instead of 2). A round keeps its files in ~/AIMS/explainer-work/mv-<job> (EXPLAINER_WORK_ROOT changes the folder); folders older than 7 days are removed. Exclude that folder and ~/Library/Caches/ms-playwright from your virus scanner's real-time scan. A runner installed before 2026-10-23 needs the install run again to get the Interactive setting.

Logs are in ~/Library/Logs/opsaims-explainer-runner, one runner log per target and one log per round. Each round is tried at most twice; a job the runner gave up on stays in its state and can be cancelled. Stop a runner with launchctl bootout gui/$(id -u)/<label>. The runner works only while that Mac is on and awake. On preview and production the rounds run on GitHub instead, one GitHub Actions job per round on a fresh Ubicloud machine (see GitHub runs under Runners Page, and docs/runbooks/explainer-rounds-on-ubicloud.md); the Mac keeps the local target.

Runners

Videos ▸ Runners (/admin/platform/videos?view=runners). It lists the runners of this server (each server keeps its own: 3100 its local runner, preview and production theirs). A runner is named <target>@<Mac name>, for example preview@Office-Mac, and appears with its first report.

  • What it shows. Every runner reports every minute: its Claude account, its Higgsfield plan and credits, whether the ElevenLabs key is set, the model in use and the Claude CLI version. The page shows that report, when it last came in, and whether the runner is Running (with the job), Idle, Held or Offline (no report for more than five minutes: the Mac is off or asleep, or the runner is stopped).

  • Higgsfield figures. The runner asks its own Claude for the Higgsfield balance with one short, cheap call, only when a job is waiting and the last answer is older than 30 minutes. The page shows when it was checked. After you fix a Higgsfield problem it can take up to 30 minutes until the page sees it; deleting higgsfield-<target>.json in the runner's state folder (~/Library/Application Support/opsaims-explainer-runner) makes it check again at the next job.

  • Held. A held runner takes no job, and the page says why and what to do. It is held when:

    • you set it to Paused;
    • its Claude account is not the Expected Claude account you set, or it cannot read its account;
    • its Higgsfield connector is on a free plan (always, even without an expected plan);
    • its Higgsfield plan is not the Expected Higgsfield plan you set (an unreadable plan counts as a mismatch then);
    • it has no Higgsfield credits left.

    A Higgsfield figure the runner could not read holds nothing by itself, so a connector hiccup does not stop production. A round that has already started finishes; the hold applies to the next job. While a job waits, the job page says when the runners are held, offline or missing, with a link here.

  • Model. Pin the model the rounds use (Opus 5.5, Sonnet 5.5 or Fable 5.1), or leave Claude default, the model of the runner's Claude login.

  • Settings need platform manage. They take effect with the runner's next report, within a minute. Use reported copies what the runner reports into the expected field. Forget runner removes a machine that is gone; a runner that still runs comes back with its next report.

  • Set Up a Runner shows the install command for this server (its address is filled in), how to sign the runner's Claude in, and how to connect Higgsfield to that Claude account at claude.ai.

  • GitHub runs. On preview and production each round runs as a GitHub Actions job on a fresh Ubicloud machine, started the moment a job waits for Claude (Submit, Go, Request script changes, Request changes, Retry). A safety net (the sweep) starts any job that has waited 10 minutes without a round, and starts a failed round again, at most twice; until go-live platform staff run it by hand, afterwards it runs every 15 minutes. A run that finds another runner already on the round stops. The section GitHub Runs lists the last 50 runs of the last 7 days, each named gha@<run id>: Running, Finished or Held, the machine it ran on, when it started, its Claude account, its job, and the operating system, FFmpeg and Chromium it reported. One Settings form applies to every run (expected Claude account, model, Paused); a run is held for the same reasons as a Mac, and also when FFmpeg or Chromium is missing on it, since the video cannot render without them. A held run starts nothing and the job keeps waiting until the hold is lifted. Runs cannot be forgotten; they leave the list after 7 days. While a run works on a job, the job page says Running on Ubicloud with when it started (or Running on a GitHub runner when Ubicloud is switched off). When the last run for the job ended without moving it, the job page says so until a new run starts. A 3D video's rounds run on a larger machine. The run's log is on GitHub, for platform staff; the page does not link to it.

A runner that talks to a server without this page yet keeps working as before: nothing is held and the model is the Claude default.

Credits

  • Every explainer costs 5 AIMS credits. They are debited from your current workspace when you press Go. With fewer than 5 credits, Go is refused and the page shows the balance.
  • The price is the same for both kinds, motion and classic.
  • The 5 credits go back to the workspace when the job fails without a finished video, or when you cancel it before Claude starts production. Once production has started, Cancel is refused for 6 hours. After that the round counts as stuck (the Claude session most likely ended): Cancel is offered again and refunds the credits if no video exists yet. A change request after Review costs nothing extra.
  • Refunded credits come back as bought credits, not as monthly allowance, so they do not expire with the month.
  • Once a video exists (after a first Review), a later failure or cancel keeps the charge.
  • If the workspace that paid was deleted after Go, nothing is refunded.
  • A retry after a refunded failure goes back to Scripted, so production needs a new Go and is paid again.
  • The page says it in words: a failed or cancelled job shows whether anything was charged, whether the 5 credits came back, or why they stay (a video from an earlier round exists). A failed job also says where Retry leads: back to Claude's script round (nothing charged before Go), back to the script (Go charges again), or back to production (no extra charge). Cancel shows its own result right away.
  • Go always produces with the voice shown on the page: if it differs from the saved one (for example the voice picked in the interview, preselected), Go saves it first.
  • The provider costs (Higgsfield credits for the images, ElevenLabs for the voice) are a company cost. The page shows the estimate and the actual cost for your information only.

Notices

  • Storage not configured. The media bucket is not set up yet. The interview and the script round still work, but images cannot be uploaded and no video can be stored or played until the founder sets the bucket names (see docs/SECRETS.md).
  • Voices not configured. The ElevenLabs key is not set on the server, so the voice list is empty and the voice step preselects Decide later (Claude proposes voices with the script). The rest of the interview still works. When the list does not answer, the step says so and offers Try again.
  • Video not available yet. A job in Review or Published whose file is not in the bucket shows this notice instead of a player. Reload the page a moment later.

Making an Explainer in Claude Code

Without the page, run /explainer in Claude Code (the skill in .claude/skills/explainer/). It interviews you about topic, audience, language, length, voiceover and film clips, writes a script document (<slug>/SCRIPT.md) and waits for your explicit Go before producing anything that costs Higgsfield credits. It then builds the page from <slug>/explainer.json with the scene kit in docs/investor/explainers/_kit/, records the MP4 (voiceover included). The kit's own labels follow the explainer's language (English, German, French, Spanish). A page made this way reaches the catalogue only through a job: create the job with New Explainer, let its round 2 upload the page and the MP4, then Publish it. There is no registry file to add a row to any more.

Release Notes — /admin/platform/release-notes

Two views: Releases (drafts, publishing and withdrawing the notes of a release) and Roadmap (?view=roadmap, what the public roadmap shows). Changing either needs platform manage.

12d. Investors — /admin/platform/investor

Platform ▸ Investors (formerly Investors → Investor portal) on app.opsaims.com has four views: Access (create, change and withdraw investor links), Pages (which deck pages any link shows), NDA (every Signed NDA) and Accounts (the investor flag on an existing account). On partner.opsaims.com the same menu entry opens the console per account, described at the end of this section.

Creating a link. Besides the label, recipient, expiry, sections and what the link opens, two choices decide what the reader must do first:

  • Access: Open link or Confirm by email (the reader confirms any address by a one-time link; it records who opened the room, it does not stop forwarding).
  • NDA: No NDA, or one of Stakeholder, Customer, Partnership, Supplier or Investor. A link asks for one NDA at most. You can change a link's NDA in its row; readers who signed the old one are then asked to sign the new one. Links created before this choice existed keep the Stakeholder NDA version 2.0. With an NDA, the reader signs it (name, firm and title, plus a mailing address on the Supplier NDA) before the room, the deck or the explainers open. It is asked once per confirmed email address and NDA: an address that has signed that NDA on any link is not asked again, in any browser. A link with a different NDA asks again, and a forwarded link asks its new reader to sign too. The hint under the field shows the agreement's version and opens it. If the agreement is still marked as a draft, you are asked to confirm.

An NDA link always confirms the reader's email. Choosing an NDA sets Access to Confirm by email and locks it. The email confirmation comes first, and the confirmed address becomes the Signer's email for notices on the agreement.

The Signed NDA. When a reader signs, OPSAIMS fills their details into the countersigned template and keeps the result as a PDF, produced once and never changed:

  • the legal name of the stakeholder (the firm, or the reader's own name without one), the typed name as an electronic signature, the printed name, the title, the confirmed email, and the signing date on page 1 (the Effective Date) and on both Date lines of page 6. The date is the calendar day in the reader's own time zone;
  • under the signature table, a signing record: the exact time in UTC, the time zone, the IP address, the confirmed email, the agreement's version, the template's hash and the link;
  • at the foot of every page, Signed electronically by on .

The reader opens it again from the NDA item in the room, the deck and the explainers, with Print and Download. They see only the one signed in their own browser on that link. No email is sent.

The link list. Each row shows:

  • Explainers: the videos the link shares, by title, each with how often it was requested through this link (not opened when nobody has). More than three fold under +N more.
  • Access: two switches, Email gate on / Open and NDA required / No NDA. Both can be changed on a live link without sending a new URL. Turning the NDA off asks for confirmation; signatures already given are kept. Turning the NDA on also turns the email gate on. The email gate cannot be turned off while the NDA is on: turn off the NDA first.
  • Views: openings, visits, files, the confirmed addresses, where it was opened from, and under NDA signed who signed, for which firm, and when. A confirmed address that signed on this link carries an NDA signed mark; click it to open that Signed NDA.

The NDA view lists every Signed NDA, newest first: signer, firm, title, email, link, version, signing date and a short hash. Search by name, firm, email or link. Open shows the document with Print and Download and its full sha256, so you can check a copy someone sends back.

Signed NDAs are kept even when a link is deleted, cannot be changed afterwards, and every signature is also written to the audit log with the Signed NDA's hash.

Signed in. Platform staff and invited investor accounts open the room and the deck without an NDA, and the deck no longer offers the assistant. The agreement stays readable at /investor/nda.

On partner.opsaims.com: the console per account

The partner portal has no investor links. An investor is an account with the investor flag: either a member of a partner workspace, or a member of the one Investors workspace for investors who are not partners (ADR 0069). Staff invite such an investor from Platform ▸ Partners ▸ Companies by choosing Investor: on acceptance the person joins the Investors workspace, gets the flag and an access row that opens everything for 30 days. An Investors-workspace account signs no partnership agreement, only its own NDA, and sees the investor area and nothing else. An address that already has an account gets the flag on the Accounts view instead.

Platform ▸ Investors has five views there:

  • Access: for each flagged account, what opens (deck, room, explainers), which room sections, which NDA the person signs, which Videos they see, and the Last day.
    • NDA: any agreement the app offers (investor, stakeholder, customer, partnership, supplier), or None / waived with a required reason of 3 to 500 characters (for example "signed the stakeholder NDA on app.opsaims on 2026-10-14"). A waived account is asked for no NDA; choosing an agreement again asks it to sign.
    • Videos: all investor videos (the default), or only the ones ticked. A video not ticked is left out of the room, the deck and the explainers page, and its address answers "not found".
    • Last day: always set, at most 365 days ahead; left empty, it is 365 days from the save. An account with no entry ends 365 days after its flag was given. Anything not opened, or past its last day, answers "not found".
  • Pages: which deck pages investors see, and whether a page is in the deck, the room or both. It is the same table as on app.opsaims.com, with the same Public / Private switch, the Where choice and the bulk buttons. These settings belong to the partner portal. Hiding a page here hides it for the partner's investors at their next page load and changes nothing on app.opsaims.com; a change on app.opsaims.com changes nothing here. A private page is left out of the room and the deck for everyone on the partner portal, staff included, so its row has no preview. If the settings cannot be read, the view says so and the room and the deck show "not available" until they can.
  • NDA: which version of the investor NDA is in force and whether it is still a draft. The agreement each person signs is set per account on Access.
  • Accounts: every partner account, flagged or not. Give turns the investor flag on from the row, Remove turns it off.
  • Signed NDAs: every NDA the accounts have signed, of any type, with a short hash, Open and Download. A waived account is listed as Waived with the reason, who set it and when. Under it, Signed on app.opsaims: the NDAs that were signed on app.opsaims.com and carried over, so nobody signs twice. Each row says "Signed on app.opsaims" with the date and the link it was signed through, and opens the original PDF, unchanged. One counts for the partner account with the same email when that account is asked for the same agreement, whatever the version (the Stakeholder NDA v2.0 of the older links counts as Stakeholder); an account asked for another agreement signs that one. A signature made in an account on app.opsaims has no PDF and says so. A signature with no email shows as Unlinked and counts for nobody until you press Link, choose the account and give a reason; Unlink takes a wrong link back. Both are in the audit log, and nothing in this list can be changed or deleted.

13. Cross-cutting: the licensing model

This is the mental model behind a customer page's Licences view (its licences and its PowerUps). Three tiers:

PRODUCTS = studios (the licensed unit). The products table is a global registry. Seven studios are the licensable roots, plus the Suite (suite), which bundles every studio and every PowerUp (STUDIO_KEYS and SUITE_KEY in packages/schemas/src/contract-quote.ts):

Product keyStudioShop default
process-intelligenceprocessAIMSLive
peoplepeopleAIMSLive
ai-transformationtransformAIMSLive
executiveexecutiveAIMSLive
operationsoperationsAIMSIn build (pre-order)
grccomplianceAIMSIn build (pre-order)
knowledgeknowledgeAIMSIn build (pre-order)
suiteOpsAim SuiteLive, minimum 10 licences

"Shop default" is the default availability in the pricing rules; change it per studio on Prices ▸ Studios (§5). A Studio licence covers every Stage of its Studio: there are no Stage licences to sell.

EVERYTHING ELSE IS AN ADD-ON ROW — of two different kinds. An add-on is a products row plus a product_addons row recording its entitlement key (and, for a Stage, its Studio). The Stages and the PowerUps sit in the same table. The column that tells the two apart is carries_allowance, and it is the only place that fact lives:

Kindcarries_allowanceParentLicence rowExamples
Stagetrueits Studionone — never grantedatlas, lens, score, forge, mining, trace, twin, sops; transform, deploy
PowerUpfalseNULL, for all fiveits ownatlas-versioning, process-library, reports, ai-master, white-label
  • A Stage is a step in its Studio's value chain. It carries the Studio's allowance, comes with the Studio licence, and has no licence row of its own: every writer refuses a Stage key (assertNotStageTx), and migration 0229 moved the old Stage rows' numbers up onto the Studio (or Suite) row and deleted them.
  • A PowerUp is a boolean capability. What one needs is held in products.requires: process-intelligence for atlas-versioning and process-library, nothing for the other three. Nothing reads a PowerUp's allowance columns and saveLicense forces them to 0 server-side — not tidiness: a number parked on a boolean row once moved a customer's real limit. (On 2026-08-08 an "unlimited" Atlas Versioning grant read as an unlimited process pool.)

Naming, and where it stops. "PowerUp" is the customer-facing name for the capability kind only — a Stage is never called one. The rename went as far as the code and the UI and deliberately no further: the table is still product_addons, its columns are unchanged, and every entitlement key (atlas-versioning.enabled, white_label, …) is untouched. The table holds Stages too, so a table named for PowerUps would misdescribe half its rows — and an entitlement key is not a label but a value stored in customer rows, read by a gate that fails closed. Expect the DB, the scripts and the grant errors to keep saying "addon".

When a key is LIVE (isAddonActive, reached through isKeyActive):

  • A Stage is live when its Studio licence is live, or a live Suite (which counts as every Studio). No switch is read.
  • A PowerUp is live when its own licence is live, its switch (entitlement) is on, and every key in its requires is live.

The check fails closed: an unknown key, an unresolved switch or a read error is a denial. The /powerups page and the platform pages call the same rule, so they cannot disagree.

Allowances vs. seats. Only Studio and Suite rows carry included_units (the process allowance that gates process creation) and seats (the invitable-user pool). The cap is the largest of them, not the sum (getProcessLimitTx, getSeatAllowanceTx), and −1 (unlimited) on any one wins. The Twin limit is the process limit. PowerUps carry neither — they're boolean.

The Community licence (signup grant). New tenants are seeded (seedCommunityLicence in seed.ts) with the free Community licence: a suite row plus one row per studio, each status: active, source: community, no expiry, with included_units = processes and seats = seats from Prices ▸ Community (default 1 · 1); it also sets the atlas.enabled entitlement. The tenant gets the Community AIMS credits (default 5) once, on its ledger; Community rows never fund a studio's monthly included credits. Seats and the process cap take the largest value across active Studio and Suite rows (getSeatAllowanceTx, getProcessLimitTx), so the rows together still grant exactly the Community numbers. To give one tenant more room for free, use the Community Licence card on its customer page (§4). A grant on the Grant Licences page replaces the Community row instead, and the page warns: "{product}: this grant replaces the free Community licence. Its source becomes Admin Grant, with the figures above."

How grants happen. Every licence lands in one of two tables, the tenant's pool (tenant_licenses) or a workspace's share (workspace_licenses):

  • Tenant grants go through the Grant Licences page (grantTenantLicencesTx): it writes the pool rows and, when a workspace is picked, grows that workspace's share by what is free.
  • Workspace shares written by the platform go through activateProductInPool, which checks the pool first (assertShareFitsPoolTx): the manage panel on the customer page's Licences view, and an approved licence request (§6).
  • The tenant's own allocation editor (Admin ▸ Plan ▸ Allocation, allocateLicense → allocateTx) shares the pool out under the same check.
  • PowerUps go through the customer page's Licences ▸ PowerUps (grantAddonLive, §8).
  • The Community seed (seedCommunityLicence) and the grant-addon.mjs script write their rows directly.

Every one of these refuses a Stage key (assertNotStageTx). activateProduct is an upsert on (workspace_id, product_key) that audits and emits a license.granted event.

Contracts and prices. Licences are sold as yearly contracts: the admin sets a monthly price, the year is 12 × monthly, and the one discount ladder, the milestone and the pre-order % apply on top. The rules live in platform_settings (licensing.pricing_rules); the shop quotes from the offers they are applied to, in the one shop currency (shop.currency). See How a Price Reaches the Shop (§5). An order is capped at 100 processes in the shop; more is an enterprise contract.

Payments. The checkout sells AIMS Credit packs only, and only the packs under Platform ▸ AIMS Credits ▸ Packs (the credit_packs price list): one pack per checkout, through the payment provider (/api/checkout/shop, a one-off payment), and the credits land on the tenant's ledger. The older code catalogue (the one-off licence, add-ons, retired studio packs) can no longer be sold. Licence checkout is not built yet (Part B): a cart with only a licence shows Payment opens once the price list is published. and cannot be paid. Until then every licence is granted by a platform admin (source: admin_grant), from the Grant Licences page or an approved request (§6).


14. Cross-cutting: tenant lifecycle

The end-to-end path a customer travels, and who does each step:

1. Provision   platform admin → New customer (§4)
                 → org + first workspace + tenant_admin user + Community licence + branding + agents
2. First login tenant admin signs in (magic-link/OAuth; no password was set) → lands in their workspace
3. License     platform admin grants the Studio(s) or the Suite to the tenant's pool (Grant Licences, §4),
                 and PowerUps per workspace (§8)
                 (or approves a licence request the tenant filed — §6)
4. Share       TENANT admin gives each workspace its share of the pool (Admin ▸ Plan ▸ Allocation),
                 sets region, invites people
5. Run         members use the licensed Studios
6. Wind down   platform admin → Suspend / Offboard (access cut, data retained)
7. Erase       platform admin → Delete (GDPR erasure, cascades)   [never your own tenant]

Note the division of labour at step 3→4: the platform admin fills the tenant's pool; the tenant admin decides which workspace gets how much. A grant on the Grant Licences page can skip step 4 for one workspace (Give to a Workspace Now). A PowerUp granted on the customer page is already on; the tenant admin can switch it off and on again under Admin ▸ Plan ▸ Licences.


15. Cross-cutting: data residency & the EU AI Act posture

Data residency / region. Region is a per-workspace setting. A tenant admin picks their AI region under Admin ▸ Workspaces ▸ ▸ Data residency (User Manual §9 ▸ System); the platform sees each workspace's residency on the customer page's Workspaces view (§4), and the AI view of Health breaks cost & latency down by region (§11). PostHog product analytics default to the EU host (§11).

AI-runs provenance (EU AI Act posture). Every AI run is logged with its agent version, region, and model (the tenant-facing view is Admin ▸ AI activity ▸ Runs). This provenance trail — plus the append-only audit log, the versioned agent registry, and the per-region cost/latency rollups in Health — is the foundation of OPSAIMS's EU AI Act readiness. complianceAIMS (grc) will build the formal EU AI Act posture surface on top of this substrate; the substrate (audit + provenance) is already in place, the studio itself is 🔜.


16. Operator playbooks

Onboard a new tenant

  1. Platform ▸ Customers ▸ New customer. Enter the customer name and the customer's admin email. This provisions org + first workspace + tenant_admin user + the Community licence + branding + agents.
  2. Tell the customer to sign in at app.opsaims.com via magic-link (no password was set).
  3. If they bought more than the free Community licence, open the customer page's Licences view and press Grant Licences. Tick the Studio(s) or the Suite, set processes, seats and the end date, give a reason, and choose Keep in Customer Pool or Give to a Workspace Now (§4). Stages are never granted: Lens, for example, comes with processAIMS.
  4. Grant any PowerUps per workspace on the customer page, Licences ▸ PowerUps (below). Versioning & Archiving and Process Library need processAIMS or the Suite first.
  5. Hand off: the tenant admin gives each workspace its share under Admin ▸ Plan ▸ Allocation (unless you gave it already), sets their region, and invites their people.

Verify a customer's email domain

  1. Platform ▸ Customers ▸ the customer ▸ Domains ▸ Add a domain. Type the bare domain (company.com).
  2. Send the customer's DNS administrator the three values shown — type TXT, name _opsaims-challenge.company.com, and the value. Use the copy buttons; a hand-retyped token is the most common cause of a failed check.
  3. When they confirm publication, press Verify. Allow a few minutes for propagation; "No TXT record found at that name yet" on the first try is normal.
  4. Verified domains are the prerequisite for automatic provisioning (below) and, later, for routing the domain's logins to the customer's own identity provider.

Let a customer's staff sign in without invitations

  1. Verify the domain first (above) — this is refused otherwise.
  2. On the verified row, tick Provision new users automatically, pick the workspace they should land in and the role (Viewer or Editor — tenant admin is not available), then Save.
  3. Check the workspace has enough seats for the intake. JIT respects the allowance, so a full workspace turns real people away at the login screen. If the customer expects a wave of sign-ins, raise the tenant's seats on the customer's Grant Licences page first, then give that workspace its share (Give to a Workspace Now, or the tenant admin under Admin ▸ Plan ▸ Allocation).
  4. Tell the customer that anyone at that domain signing in with Google or Microsoft now gets access automatically, and that removing someone is still a deliberate act on their side.
  5. To pause intake, untick and Save — existing members are unaffected.

Grant a tenant a PowerUp

  1. Check what it needs. Versioning & Archiving (atlas-versioning) and Process Library (process-library) need processAIMS or the Suite on that workspace. Without it, Grant is refused with requires_not_licensed and the page shows This PowerUp needs a product this workspace doesn't hold yet. Reports, AI Master and White Labelling go to any workspace.
  2. Platform ▸ Customers ▸ Workspaces → the workspace's PowerUps (the customer page, Licences ▸ PowerUps) → Grant. It is licensed and switched on at once.
  3. Point the customer at /powerups. Its card was already there reading Get; after the grant it reads Active and its button takes them to where the PowerUp works. If they report it as Locked, the Studio it needs is missing on that workspace — go back to step 1.

Handle a license-upgrade request

  1. Watch the Requests badge in the menu.
  2. Platform ▸ Requests. Read the row — it shows current vs requested seats/processes so you see the delta.
  3. Approve to apply the change and close the request atomically, or Reject with a note. Approve is a no-op on the licence if applying fails, so the tenant is never told yes without getting it.
  4. Approve is pool-checked. If the tenant's pool has too little free, it is refused with Not enough is free in the customer pool. Grant the customer more first, or reject the request. Raise the pool on the customer's Grant Licences page, then approve again.
  5. The approved share takes the pool's end date, and approving lifts a pause the customer's admin had set on that share.
  6. A request for a Stage (for example atlas) cannot be approved: Stages come with their Studio. Reject it and, if the customer needs it, grant the Studio.
  7. An Enterprise row is a quote or call-back request. Read the note (licences, plan, or the phone number, then the message) and contact the customer. Once the deal is signed, click Open the customer's licences and enter it on the Enterprise Contract form (Replace now if a shop contract runs). Then click Mark as handled; it changes no licence.

Add an industry or department to the shared vocabulary

  1. Platform ▸ Taxonomies, the view Industries or Departments, New term. Give it a label + sort order.
  2. It becomes selectable in tenant process tagging and in the Process Library meta form immediately (if active). Toggle inactive to retire it without deleting.

Add a system to the shared catalogue

  1. Platform ▸ Systems ▸ New system. Name it, pick its kind, and record the vendor.
  2. Add a release, and fill it only from the vendor's own documentation — modules, connections, exports, transactions — recording the source URL for each. If you cannot find a page for a fact, the fact does not go in. A remembered detail is not a sourced one, and this catalogue is shared.
  3. Publish the release when its content has been reviewed, then publish the system so tenants can see it. They are two buttons and two different acts; a system with no published release is adoptable and empty.
  4. Later, use Check for a new version to re-read those URLs. If it answers cannot tell, the vendor's pages could not be read (usually a JavaScript-rendered docs site) — that is not "unchanged", and the entry still needs a human to look.

Publish a starter template into the Process Library

  1. Export/obtain a validated process as JSON or BPMN.
  2. Platform ▸ Process Library ▸ Upload JSON/BPMN. Edit the title/description (optionally Generate with AI) and pick industry/department from the taxonomy, then Publish.
  3. Use Hide to stage a template out of tenants' view without deleting it.

Suspend or erase a tenant (GDPR)

  1. Platform ▸ Customers. Use Suspend to cut access while retaining data (reversible via Reactivate).
  2. Use Delete customer for a full erasure — type the customer's exact name to confirm. You can never suspend/offboard/delete the tenant you're signed in under.

Change What a Role May Do (the Access Matrix)

  1. Open Platform ▸ Default permissions ▸ Matrix and find the action (search by name).
  2. Click the cell for the new lowest role, or open the action to change its protected right too.
  3. Check Enforced in code — if no route checks it yet, the change will not do anything.
  4. Validate & Prove. Fix anything it reports.
  5. Publish with a note saying why. The previous version stays in History.

This changes the default, not the tenants. Each tenant owns its matrix (ADR-0021): a changed row for an existing action reaches only tenants provisioned after the publish. A new action reaches every tenant that has no row for it, and their Admins are told. To change an existing tenant's rights, its own Admins do it, four eyes, under Admin ▸ Permissions ▸ Matrix.

Triage "is the platform wedged?"

  1. Platform ▸ Health, view Events. Check the Event-bus relay tiles: depth climbing and oldest age growing = the relay is stuck.
  2. Check the Dead-letter queue: open count > 0 means events exhausted retries — inspect the error and Replay once the cause is fixed.
  3. Scan the view AI for a region/model with abnormal p95 or spend.

17. Glossary

TermMeaning
Platform adminAn OPSAIMS operator with cross-tenant authority (platform role superadmin).
TenantA customer company — the root of the multi-tenant model; groups workspaces.
Tenant roleOne of the five roles on the ladder — guest < viewer < auditor < editor < admin — held once per person per tenant (tenant_members); each has everything below it. Roles are data (access_roles), so a level can be inserted (§4a).
Protected rightA right outside the ladder — salaries (pay on the rate card), usernames (other people's names on tenant pages) or performer_identity (real names in Mining logs); glossary_steward is reserved. A tenant Admin grants it per person (user_rights), audited. A matrix row can say it is held automatically from a role up (right_waived_from): Salaries from Editor, Usernames from Admin; Performer identity from nobody.
Access matrixPlatform data, versioned draft → published → archived: each action's lowest role, optional protected right and optional "held automatically from" role. Licence ∧ role ∧ right decide every action; the Cedar policies are generated from the published version (§4a).
Platform planeThe purple, cross-tenant admin area (/admin/platform).
withPlatformAdminThe audited superadmin bypass: authority check + audit row + RLS bypass, in one transaction.
RLS (row-level security)The mechanism isolating each workspace's data; the platform bypass crosses it via app.superadmin.
Product / StudioA licensable root (process-intelligence, ai-transformation, …); the -AIM studios.
StageA step in a Studio's value chain (atlas, lens, …) — a product_addons row with carries_allowance = true. Never licensed on its own: it comes with its Studio. Not a PowerUp.
PowerUpA capability add-on — a product_addons row with carries_allowance = false, licensed per workspace. There is one kind; what it needs is in products.requires (process-intelligence for Versioning & Archiving and Process Library, nothing for the rest).
EntitlementA per-workspace capability flag: the on/off switch of a PowerUp.
isAddonActiveA PowerUp is live when its own licence is live and its switch is on and every requires key is live; a Stage is live when its Studio (or the Suite) is. Fails closed.
Seat budgetThe largest seats across a workspace's active Studio and Suite rows (Community = 1 by default).
included_unitsA base product's process allowance (gates process creation).
Licence requestA tenant admin's in-app ask for an upgrade / new product, reviewed on the platform queue.
Taxonomy termA shared industry/department vocabulary entry, curated platform-side.
Process LibraryThe global, curated template catalog tenants load Atlas processes from.
Outbox / relayThe event-bus that drains domain events; its depth/age is the health signal.
Dead-letter queueEvents that exhausted retries; replayable from Health (§11).
Residency / regionPer-workspace data/AI region; honoured for AI processing and shown to the platform.
AI-runs provenancePer-run log of agent version + region + model — the EU AI Act foundation.

This manual is a work in progress and tracks the platform as built. Found something that doesn't match what you see in the purple area, or a service that's changed? Update this file — new sections are added as platform features ship.

On this page

OPSAIMS — Platform Admin ManualTable of contents1. What a platform admin is2. Entering the platform area (the purple plane + MFA)The colour codeGetting inThe platform-MFA gateThe pending-requests badge3. How platform authority works (the security model)4. Customers — /admin/platform/customersCustomers ▸ Licences — /admin/platform/customers?view=licencesCustomer page — /admin/platform/customers/[tenantId]Enterprise Contract — the Licences ViewGrant Licences Page4.1 Domains — ?view=domainsVerifying a domainAutomatic provisioning (JIT)4a. Default permissions — /admin/platform/rolesThe Header: One Draft for the Whole PageMatrix tabRoles tabProtected Rights tabRules tabHistory tabWhat Validate & Prove Checks5. Commercial — Revenue & cost, Prices, AIMS CreditsRevenue & Cost ▸ OverviewRevenue & Cost ▸ ForecastRevenue & Cost ▸ AI CostPrices ▸ StudiosPrices ▸ SuitePrices ▸ CommunityPrices ▸ PowerUpsPrices ▸ DiscountsPrices ▸ PackagesHow a Price Reaches the ShopPrices ▸ CurrencyAIMS Credits — /admin/platform/creditsInvoicing — /admin/platform/invoicing6. Requests — /admin/platform/requests7. Agents — /admin/platform/customers/[tenantId]?view=agents8. PowerUps — /admin/platform/customers/[tenantId]?view=licences&sub=powerups8.1 reports — the one PowerUp that gates an ACTION, not a screen9. Taxonomies — /admin/platform/taxonomies10. Process Library — /admin/platform/process-library11. Health — /admin/platform/observability11.1 Release tests — /admin/platform/release-tests11.2 Backups — /admin/platform/backups12. Systems — /admin/platform/systemsThe one rule that governs this screenThe two Publish buttons, and why they are differentCheck for a new versionTrust and provenance12a. Messages — /admin/platform/messagesEmailsEmail footerChannel Encryption12b. Academy12c. Videos — /admin/platform/videosLibraryPublish, New Version, Withdraw and RestoreShare PubliclyData RegionWhere Explainer Pages OpenExplainers on the Investor PortalNew ExplainerThe InterviewJob StatesRunnersCreditsNoticesMaking an Explainer in Claude CodeRelease Notes — /admin/platform/release-notes12d. Investors — /admin/platform/investorOn partner.opsaims.com: the console per account13. Cross-cutting: the licensing model14. Cross-cutting: tenant lifecycle15. Cross-cutting: data residency & the EU AI Act posture16. Operator playbooksOnboard a new tenantVerify a customer's email domainLet a customer's staff sign in without invitationsGrant a tenant a PowerUpHandle a license-upgrade requestAdd an industry or department to the shared vocabularyAdd a system to the shared cataloguePublish a starter template into the Process LibrarySuspend or erase a tenant (GDPR)Change What a Role May Do (the Access Matrix)Triage "is the platform wedged?"17. Glossary