Skip to content
Operators

Operator handbook

Sign in to the AppCore operator console, find your way around it, run common tasks, understand roles, and respond to incidents.

On this page

This handbook is for the people who run an app on AppCore: owners, administrators, developers, support, billing, marketing, privacy and security staff. It covers the operator console, which is a separate web app from your consumer mobile app. Operators never sign in as a consumer to do administration.

Warning

Not yet enabled: the console has not been run against a live backend. Its tests run against built-in sample data (evidence level MOCK_TESTED). The live build compiles, but no request from it has reached a deployed control plane yet. Many screens call admin endpoints that the backend does not serve yet. On a live deployment those screens show an "unavailable" or "not authorized" state, never invented data. The screen table shows the status of each screen.

What the operator console is

The console is a single-page web app served on its own origin. It talks to one backend, the console API (control plane), in two ways:

PlanePathsWhat it covers
Control plane/v1/control/*, /v1/connections/*Tenants (organizations), apps, environments, members and roles, provisioning jobs, audit, costs, policy, provider connections
Operator gateway/v1/scoped/{resource_set_id}/v1/...Everything inside one app environment: users, catalog, entitlements, purchases, templates, campaigns, remote config, reports. The gateway checks your role grant for that environment, then forwards the request to the environment's runtime with a signed capability that lasts 60 seconds.

You never call an app runtime directly, and you never send tenant or app headers. Scope always comes from the environment you select, and the server checks your grants for it. If you open a record outside your grants, you get the same 404 as for a record that doesn't exist.

Sample data mode. A console built without an API base runs only on sample data. Every page then shows a "Sample data" badge and the banner "Sample data. Nothing here is live and no message, charge or provisioning is sent." If you see that banner, nothing you do reaches AppCore.

Signing in

  1. Open the console and enter your work email. Only operators who were invited (or created at install) can sign in. Any other address is refused.
  2. Enter the 6-digit code sent to that email. Codes expire after 5 minutes.
  3. If your account has two-step sign-in, enter the code from your authenticator app (or a backup code). AppCore creates no session until this step passes.

Google sign-in for operators is also supported when the installation has configured it.

Warning

Not yet enabled: operator sign-in works only after the installation configures operator email delivery or Google OAuth for operators. Without either, nobody can sign in, and the control plane's /health/ready reports these as not_configured.

The operator session

  • The session is a cookie named appcore_admin_session, set as HttpOnly, Secure, SameSite=Lax, Path=/. The console never reads or stores it, and no page script can see it.
  • A session lasts up to 12 hours and is refreshed as you use it. Sign out is in the account menu at the bottom of the sidebar.
  • Operator accounts are separate from your app's consumer accounts.

Two-step sign-in (MFA)

Two-step sign-in is required for these roles: platform_owner, tenant_owner, app_admin, security, billing and privacy. Until you turn it on and verify it in the current session, the server ignores those grants. Changes to money, access and live configuration are then refused, and the console shows "Two-step sign-in is required for your roles."

To turn it on: account menu → Two-step sign-in (/account/security) → scan the QR code or type the key into an authenticator app → enter a code. Backup codes appear once, so store them safely. Turning it on signs out your other sessions.

Recent sign-in, reasons and confirmations

CheckWhat you seeWhat to do
Recent sign-in. Permissions marked "Recent auth" in permissions need a sign-in within the last 15 minutes.Control-plane actions return 403 RECENT_AUTH_REQUIRED ("Sign in again to perform this action"). App-scoped actions through the gateway return 403 (the gateway leaves those permissions out when your sign-in is older than 15 minutes).Sign out, sign in again, and retry.
Reason. Consequential actions need a written reason of at least 10 characters. It is stored in the audit log.400 REASON_REQUIREDEnter a specific reason (ticket number, what and why).
Version check. Edits send the version you opened.409 "Changed since you opened it"Reload, check the newer version, then apply your change again.
Idempotency. Every change carries an idempotency key. A retry of the same action reuses it, so it never runs twice.The retry returns the original result.Safe to retry after a network error.

Note

Reasons are sent in a request header. If a reason contains non-ASCII characters it is URL-encoded, and the audit log may show it encoded until the control plane decodes it. This is an open request to the control-plane team.

Cross-site protection (CSRF)

Every change to the control plane must come from an allowed console origin. Requests with a missing or unknown Origin, or that the browser marks cross-site, are refused with 403 ORIGIN_REJECTED. Together with the SameSite cookie, this is the CSRF protection. Use the console only at its own address. Don't call the console API from scripts or other sites using your browser session.

Console navigation

Header: the scope switcher shows tenant → app → environment. Pick an app environment before using any app screen. All apps (read only) shows aggregates only. Production is labelled with the word Production and a shield icon, and a banner reminds you that changes reach live users. If you have unsaved changes when you switch scope, the console asks whether to discard them, and it never submits them into the new scope.

Sidebar: grouped as below. You only see a screen when your role includes its read permission for the selected scope. On a phone, the tab bar shows Overview, Users, Purchases and Campaigns, and More opens the rest.

Status key:

  • Live: every backend route the screen calls exists.
  • Partial: some routes exist and some don't.
  • Mock only: the screen's main data route doesn't exist yet, so live it shows unavailable.
  • Not released: R2/R3, a disabled screen with no controls.

None of these is a test result. See the warning at the top.

GroupScreen (path)Shown withStatusNotes
OverviewOverview (/)app.settings.readPartialCredential-expiry alerts are live; the action-center list (/v1/control/overview) is not served yet
Fleet and organizationsFleet (/fleet)platform.fleet.readPartialJobs are live; the cross-tenant environment list (GET /v1/control/environments) is not served
Organizations (/organizations)tenant.metadata.readLive
Environments (/environments)app.settings.readPartialSame missing environment list as Fleet
Plan and usage (/plan)tenant.metadata.readPartialThe plan is served; the 30-day usage series is not
Setup and connectionsSet up an app (/setup)tenant.createPartialCreate tenant, create app and provisioning are live
Setup checklist (/setup/checklist)connection.metadata.readLive
Connections (/connections) and a connection's detailconnection.metadata.readPartialCreate, secrets, tests, activate, rotate and disable are live. Editing public fields after creation is not: the console sends PUT .../public-config, while the backend serves PATCH /v1/connections/{id}
Flutter setup (/sdk)sdk.public_config.exportLiveReads the public client config
Users and accessUsers (/users)user.masked.readLiveSearch needs a query
User detail (/users/{id})user.masked.readPartialProfile, block and unblock are live. The methods, devices, sessions, consent and timeline tabs and "revoke sessions" are not
Privacy requests (/privacy)privacy.case.readMock only
Sign-in methods (/auth-config)app.settings.readMock only
Members and roles (/members)membership.readLive
Two-step sign-in (/account/security)everyoneLive
Products and entitlementsCatalog (/catalog), Plan editorcatalog.readPartialList, draft and publish are live; opening one plan (GET /v1/catalog/plans/{id}) is not
Store mappings (/catalog/mappings)catalog.readMock only
Add-ons and offers (/catalog/addons)catalog.readMock onlyThe backend has add-on rules per product, which this screen does not use yet
Entitlements (/entitlements)entitlement.inspectLive
Credits ledger (/credits)credit.ledger.readMock onlyThe backend serves /v1/entitlements/users/{id}/timeline and /v1/entitlements/credits/adjust. The screen calls other paths
Purchases and financePurchases (/purchases)purchase.masked.readPartial"Start reconciliation" is live; the operator purchase list is not
Refund (/purchases/{id}/refund)purchase.refund.requestPartialSubmitting a refund is live; loading the purchase as an operator is not
Subscriptions, Restore casespurchase.masked.read, purchase.restore_case.manageMock only
Invoices and receipts (/documents)finance.document.readPartialIssuing a credit note is live; the operator document list and download are not
Reconciliation (/reconciliation)purchase.financial.readPartialStarting a run is live; the exception queue is not
Revenue (/revenue)finance.revenue.readMock onlyRevenue data exists as the report commerce.revenue.daily on the Reports screen
Checkout policy (/checkout-policy)finance.checkout_policy.activateMock onlyThe control plane enforces it as part of policy activation
Messaging and engagementMessage templates (/templates)message.template.readLive
Devices and inbox (/devices)message.device.masked.readMock only
Deliveries (/deliveries)message.delivery.readLiveIncludes replaying dead-lettered messages
Segments (/segments)segment.readLive
Campaigns (/campaigns) and campaign detailcampaign.readLive
Remote config (/remote-config)config.readLive
Journeys, Experiments, Referrals and bundlesR2/R3 permissionsNot releasedThe backend answers journey calls with 503 FEATURE_UNAVAILABLE
Reports and analyticsReports (/reports)analytics.aggregate.readPartialRunning a report is live; the report catalogue list is not
Exports (/exports)analytics.redacted.exportPartialCreate, status and download are live; the list of past exports is not
Event schemas (/event-schemas)analytics.schema.readMock onlyThe backend serves /v1/analytics/schema, but the screen calls /schemas
Retention (/retention)privacy.retention.configureMock only
Operations and settingsLogs and traces (/logs)logs.redacted.readMock only
Audit log (/audit)audit.readLiveThe Export button does nothing yet
Costs and budgets (/costs)cost.readPartialCosts are live. "Stop optional work" calls a path that doesn't exist; the backend's emergency stop is /v1/control/environments/{id}/emergency-stop
Jobs and failures (/jobs)job.readPartialThe job list is live; a generic job retry is not (provisioning is retried from the environment)
Releases and migrations (/releases)release.previewPartialPromote is live; the release list is not
Backups and recovery (/backups)backup.metadata.readPartialA restore request is live but stops at a manual step; the backup list is not
Maintenance (/maintenance)environment.suspendLive
Policy and budgets (/policy)policy.readMock onlyThe backend serves POST /v1/control/environments/{id}/policies, not the /v1/control/policy paths the screen calls

Common tasks

Each procedure lists the permission it needs. If the control isn't there, your role doesn't include it for the selected scope; see permissions. A control that is shown but disabled has a "Reason" tooltip explaining why.

Invite a member and assign roles

Needs membership.invite (tenant owner, platform owner). Recent sign-in and a reason are required.

  1. In the scope switcher, select the organization (for a tenant-wide grant) or one app environment.
  2. Open Members and roles → Invite.
  3. Enter the person's work email, pick a role, optionally set an expiry date, and enter a reason.
  4. Send. The invitation is valid for 7 days. The invitee signs in with that email and accepts it. Only that identity can accept.

Rules the server enforces:

  • You can grant only permissions you already hold at that scope.
  • Nobody can grant platform_owner through invitations.
  • A grant never widens beyond its tenant, app or environment.
  • Expired invitations return 410.

To remove access, choose Revoke on the member row (membership.revoke). The next request from that person is denied. Members who need two-step sign-in and haven't turned it on are shown as "Required, off".

Warning

Not yet enabled: changing an existing grant in place (membership.grant.update) is not built. Revoke the grant and invite again.

Create an app and its environments

Needs tenant.create for a new organization (platform owner) or app.create for another app in your organization (tenant owner). Recent sign-in and a reason are required.

  1. Open Set up an app and follow the steps. Progress is saved, so you can leave and come back.
  2. Choose the environments to create (for example development, staging and production). Each one gets its own isolated runtime and database. See Environments.
  3. Provisioning runs as one job per environment: create database → migrate → seed → deploy runtime → route → health check. Follow it in Jobs and failures or in the wizard.
  4. If a step fails, retry provisioning from the environment (job.retry.infrastructure). A retry resumes the same resources; it never creates duplicates.

A duplicate package name or bundle ID returns 409 STORE_ID_TAKEN.

Warning

Not yet enabled: provisioning a new app needs a Cloudflare API credential and a published runtime artifact on the installation. Without them, jobs stop at awaiting_manual. Plan quotas (apps and environments per tenant) apply when the installation enables tenant plans.

Connect providers and read readiness

Needs connection.metadata.read to view. Writing secrets, running tests and activating need the connection.* permissions for that environment. The production variants (.production) need recent sign-in and a reason, and the developer role does not have them.

  1. Open Setup checklist to see every connector's state: ready, blocked (naming the task that blocks it), not configured or disabled by policy. It also shows the evidence level and which features stay off until it is ready.
  2. Open Connections → pick a provider. Fill in the public fields, then enter each secret. Secrets are write-only: after saving you see only that a value is set, its fingerprint and its version, never the value.
  3. Run the tests in order: syntax → read-only (calls the provider with your credentials) → sandbox (non-production) or live (production; needs connection.test.live_send).
  4. Activate when the required evidence is present. Readiness comes from passing checks, not from entering values. Activation publishes a new connection snapshot to the environment's runtime.
  5. Rotate stages a new secret and promotes it after its checks pass, with an overlap window. Disable turns the connection off at once (reason required).

Until a provider is connected and ready, features that depend on it return 503 FEATURE_UNAVAILABLE. They never pretend to succeed. Provider guides: providers.

Warning

Not yet enabled: WhatsApp, Razorpay and Stripe are shown as disabled ("Provider approval pending"), and the Stripe webhook answers 503. Editing a connection's public fields after creation doesn't work from the console yet (see the screen table). Reading back a secret is deliberately impossible for every role.

Publish the catalog and plans

Needs catalog.draft.edit to edit drafts. Publishing needs:

  • Non-production: catalog.publish.nonproduction (tenant owner, app admin, developer, billing).
  • Production: catalog.publish.production (tenant owner and billing only), which also needs recent sign-in, a reason and the financial approval policy.

The server picks which of the two to check from the environment you are in.

  1. Open Catalog, create or edit a product or plan draft, and save it. Each save is a new draft version.
  2. Review the impact preview, enter a reason, and Publish. Published versions never change; a later change is a new version.
  3. Retire a product with Retire (same permission as publishing).

The SDK catalog export never contains prices. Apps show the store's localized price. See Stores as merchant of record.

Warning

Not yet enabled: the store mappings screen, the add-ons screen and opening a single plan in the plan editor don't load live yet. catalog.native_mapping.edit is specified but has no separate check yet.

Grant or revoke an entitlement manually

Needs entitlement.manual_grant or entitlement.manual_revoke (tenant owner and billing only). Recent sign-in, a reason and the financial approval policy are required. Support and app admins can inspect access (entitlement.inspect) but cannot grant it.

  1. Open Entitlements, search for the user (app-scoped ID), and review their current access and where each part comes from.
  2. Grant: choose the entitlement and an end date if needed, enter a reason, and submit.
  3. Revoke: pick a manual grant → Revoke with a reason. You can only revoke manual grants. Store-derived access changes only through purchase events from the store.

Credit balance changes go through credit.adjust (tenant owner, billing): a positive adjustment adds a manual lot, a negative one debits units and never goes below zero (409 INSUFFICIENT_UNITS). See Entitlements and credits.

Warning

Not yet enabled: the Credits ledger screen is mock only. The backend serves credit adjustments and a user timeline at paths the screen doesn't call yet.

View purchases and handle refunds

Needs purchase.masked.read to view purchases, and purchase.refund.request (tenant owner, billing) to request a refund. Recent sign-in, a reason and an approval reference are required.

  • Google Play and Razorpay: AppCore sends the refund to the provider. Google Play supports full refunds only; a partial request is refused with 422 CAPABILITY_UNAVAILABLE.
  • Apple App Store: refunds are customer-initiated. The request is recorded as awaiting_manual, and you guide the customer to Apple's refund flow.
  • The purchase's state changes only when the provider confirms (by webhook or reconciliation), not when you click. If the result is uncertain, wait for reconciliation and don't retry blindly.
  • Partial refunds must be in the purchase currency and can't exceed the amount still refundable.

Reconciliation (purchase.reconcile.start) re-checks provider state for the environment. Store notification replay (purchase.webhook.replay) reprocesses one stored notification.

Warning

Not yet enabled: the operator purchase list, subscriptions, restore cases, the reconciliation exception queue, revenue and the finance document list are mock only. Their admin read endpoints are not served yet. On a live deployment you can submit refunds, start reconciliation and issue credit notes, but you can't browse purchases from the console.

Templates and campaigns (separation of duties)

Templates need message.template.edit (tenant owner, app admin, marketer). Campaigns need campaign.draft.edit to create and preview, and campaign.approve, campaign.schedule, campaign.pause, campaign.resume and campaign.cancel for the matching steps.

  1. Templates: create a template version, preview it, send a test to a paired test device, then Publish.
  2. Segment: build a segment and preview its estimated size (segment.preview). Segment estimates are aggregate counts only.
  3. Campaign: create a campaign from a published segment and template. Preview locks the audience snapshot and moves the campaign to in review.
  4. Approve: a different operator approves the locked version. If the approver is the person who created the campaign or who ran the preview, the server refuses with 403 SEPARATION_OF_DUTIES ("A different operator must approve this campaign"). Previewing again clears any approval. If the segment changed since the preview, the approval is refused with 409 AUDIENCE_CHANGED.
  5. Schedule: checks the app's policy profile, marketing switch, recipient and monthly send quotas, and spend ceilings before anything is queued. In production, scheduling needs a policy profile from the control plane (409 POLICY_REQUIRED).
  6. Pause, resume or cancel as needed. Messages already handed to messaging cannot be recalled.

Marketers can't change a user's consent to make them eligible. Exclusions show the reason. See Consent and privacy.

Warning

Not yet enabled: journeys and experiments are R2 and answer 503 FEATURE_UNAVAILABLE. Template provider approval status (needed for WhatsApp) is not shown yet, and WhatsApp itself is disabled.

Publish or roll back remote config

Needs config.publish.nonproduction or config.publish.production. Production is limited to tenant owner, app admin and marketer, and needs recent sign-in and a reason. Rollback needs config.rollback (tenant owner, app admin, security).

  1. Open Remote config, edit typed values, set the rollout percentage, and enter a reason.
  2. Publish creates a new, immutable release. Users fall into stable rollout buckets for that release.
  3. Roll back creates a new release with an earlier release's values at 100%. History is never rewritten.

Warning

Not yet enabled: saving a config draft without publishing (config.draft.edit) is specified but has no separate check.

Replay dead-lettered messages

Needs message.replay.nonproduction, or message.replay.production (tenant owner, app admin, marketer; recent sign-in and a reason).

  1. Open Deliveries, filter to failed or dead-lettered items, and read the error class.
  2. Fix the cause first (provider credential, quota, template). See the messaging runbook summary below.
  3. Replay one item with a reason. AppCore checks it again before queueing: if the deadline has passed you get 409 INTENT_EXPIRED (it's never sent late), and if consent or caps now exclude the user you get 409 NOT_ELIGIBLE. Only dead_lettered items can be replayed.

Replay a small sample first, check the outcomes, then continue.

Run reports and exports

Reports need analytics.aggregate.read. Some reports need more: revenue needs finance.revenue.read, and cost and usage reports need cost.read.

  1. Reports: choose an approved report, a date range and dimensions, then run it. Results show the definition version, freshness, and whether they were sampled.
  2. Exports: create an export job (analytics.redacted.export), follow its progress, then download it while the link is valid (analytics.export.download). Exports contain only the approved redacted projection, never raw personal data. No role can create a raw personal export.

Warning

Not yet enabled: the report catalogue, the list of past exports, event schemas, retention and the dedicated revenue screen are mock only.

Look up a user

Needs user.masked.read (tenant owner, app admin, security, support, privacy).

  1. Select the app environment, open Users, and search by an identifier you are allowed to use.
  2. Open the user. Before sensitive tabs load, the console asks for a support purpose and a reason.
  3. Available actions: Block or unblock access (user.access.block, recent sign-in and a reason), and recovery cases (user.recovery_case.manage, with session revocation inside a case needing user.sessions.revoke).

Contact details are masked. No role can see OTPs, session tokens or sign-in secrets, impersonate a user, or silently move an identity to another account.

Warning

Not yet enabled: the user detail tabs for sign-in methods, devices, sessions, consent and timeline, and the standalone "revoke sessions" button, are mock only. Sign-in method policy (Sign-in methods screen) is mock only.

Privacy export and deletion requests

Privacy case permissions belong to the privacy operator role and are tied to a recorded privacy case.

Today, users start data export and account deletion from your app with the SDK. Operators with privacy.case.read can read the status of a privacy job (no personal data). Deletion runs as a resumable process: freeze access, handle provider subscriptions, revoke identities, delete or pseudonymize data, propagate to analytics, and keep lawful finance records. See Consent and privacy.

Warning

Not yet enabled: the operator side of privacy cases is not built. That includes creating a case, listing cases, generating or downloading an export for a case, running a deletion, correcting consent, and resuming a stuck case (privacy.case.create, privacy.export.*, privacy.deletion.execute, privacy.consent.correct). The Privacy requests screen is mock only.

Review the audit log

Needs audit.read (platform owner, tenant owner, app admin, security, privacy).

Open Audit log and filter by actor, action, reason, scope and result. Control-plane changes are audited with actor, scope, reason and result, and so are denied attempts (with the denial code). Audit entries never contain secrets.

Warning

Not yet enabled: audit export (audit.export) is specified but not built, and the Export button has no action.

Suspend, resume or archive an environment

Needs environment.suspend and environment.resume (platform owner, tenant owner, app admin; security can suspend), or environment.archive (platform owner, tenant owner). Recent sign-in and a reason are required.

Open Maintenance, review the exact effect, type the environment name to confirm, and submit. Suspending an environment does not switch off store and payment callbacks; the runtime decides how to handle them. Archived environments refuse further actions.

Roles and permissions

Roles are scoped grants: each grant covers a whole tenant, one app, or one environment, and can expire. You can hold several roles. Your effective permissions are the combined permissions of your live grants that cover the selected scope, limited by each permission's environment restriction (some apply only to production, some only to non-production).

Role (id)Main workBoundariesTwo-step sign-inPermissions (R0/R1)
Platform owner (platform_owner)Fleet, installation, provisioning, releasesNo automatic access to consumers or financial records; needs a separate business-role grantRequired36
Tenant owner (tenant_owner)Organization, apps, members, policy, budgetsOwn organization only; cannot read secrets or bypass store policyRequired110
App administrator (app_admin)App setup, users, configuration, safe operationsSelected apps/environments; financial changes need an explicit permissionRequired74
Developer (developer)SDK integration, non-production tests, logs, releasesNo production secrets or activation, no refunds, no impersonationOptional34
Security operator (security)Audit, access review, suspension, rotation, incidentsCannot grant credits or publish campaignsRequired48
Billing operator (billing)Catalog, purchases, refunds, invoices, reconciliationNo auth or provider-key administrationRequired33
Marketer (marketer)Segments, templates, campaigns, remote configNo ledger edits, credentials or sensitive attributesOptional32
Analyst (analyst)Approved aggregate reports, redacted exportsNo production config writes, no personal exportsOptional12
Support (support)Masked user lookup, support casesNo OTP or session access, no identity reassignment, no impersonationOptional18
Privacy operator (privacy)Consent, data requests, retention, erasureOnly within a recorded privacy caseRequired22
Viewer (viewer)Aggregate overview, published reportsNo changes, no user-level dataOptional7

Six permissions belong to no role, by design: secret readback, user impersonation, sign-in secret readback, identity reassignment, financial-history overwrite and raw personal export.

Enforced in code vs specified only

The permission file is the specification, and the server builds its matrix from it. Whether a permission is actually checked depends on whether its route exists. This is the state of the code as of this edition. The per-permission In code column in permissions is regenerated from source with node docs/scripts/gen-permissions.mjs.

AreaChecked by the server todaySpecified only (no route yet)
Control planetenant.create, tenant.metadata.read, app.create, app.settings.read, membership.read/invite/revoke, policy.activate, finance.checkout_policy.activate, audit.read, cost.read, cost.budget.update, cost.noncritical.stop, job.read, job.retry.infrastructure, migration.execute.*, release.deploy.nonproduction, release.promote.production, environment.suspend/resume/archive, backup.export.request, recovery.execute, database.capacity.read, platform.fleet.read, platform.install.configure, app.settings.update (custom hostnames), recovery.plan.preview (restore drill)tenant.metadata.update, membership.grant.update, policy.read, release.preview, release.rollback.production, migration.preview, backup.metadata.read, backup.export.download, environment.destroy, database.capacity.plan.execute, logs.redacted.*, audit.export
Connectionsall connection.* except secret readbacksdk.public_config.export (the public config is public)
Identity and privacyuser.masked.read, user.access.block, user.recovery_case.manage, user.sessions.revoke (inside recovery cases), privacy.case.read (job status)user.methods.read, auth.policy.update.*, privacy.case.create, privacy.export.*, privacy.deletion.execute, privacy.consent.correct, privacy.retention.configure
Catalog and entitlementscatalog.read, catalog.draft.edit, catalog.publish.*, entitlement.inspect, entitlement.manual_grant/revoke, credit.ledger.read, credit.adjustcatalog.native_mapping.edit has no separate check
Commerce and financepurchase.refund.request, purchase.reconcile.start, purchase.webhook.replay, finance.credit_note.issue, finance.revenue.read (revenue report)purchase.masked.read, purchase.financial.read, purchase.restore_case.manage, finance.document.read/download, finance.revenue.export
Messagingmessage.template.read/edit, message.delivery.read, message.replay.*message.device.masked.read, message.delivery.export
Engagementsegment.*, campaign.*, config.read, config.publish.*, config.rollback; journey.* (returns 503)config.draft.edit, experiment.manage (R2)
Analyticsanalytics.aggregate.read, analytics.redacted.export, analytics.export.download, analytics.schema.readanalytics.schema.update, analytics.basin.enable (R2)

Incident runbook index

Each module team owns a runbook at packages/<package>/docs/RUNBOOK.md (control plane: apps/control-api/docs/RUNBOOK.md). Where a runbook exists, follow it: it describes the shipped tooling. Where it doesn't exist yet, the matching section below summarizes the procedure from the AppCore specification (handoff/appcore-handoff/docs/platform/OPERATIONS_RUNBOOKS.md) and is labelled from the spec. Those summaries describe intended operations, not verified tooling. Use the console screens marked Live above, and escalate anything the console can't do.

Note

Runbook links point into the AppCore source repository and resolve there, not on the public documentation site.

AreaRunbookStatusOwner
Identity and privacypackages/identity/docs/RUNBOOK.mdAvailableWS02 identity
Connectionspackages/connections/docs/RUNBOOK.mdAvailableWS03 connections
Messagingpackages/messaging/docs/RUNBOOK.mdAvailableWS04 messaging
Entitlementspackages/entitlements/docs/RUNBOOK.mdNot yet written — owner WS05WS05 entitlements
Commerce and financepackages/commerce/docs/RUNBOOK.mdAvailableWS06 commerce
Engagementpackages/engagement/docs/RUNBOOK.mdAvailableWS07 engagement
Analyticspackages/analytics/docs/RUNBOOK.mdAvailableWS08 analytics
Platform (RBAC, capacity)packages/platform/docs/RUNBOOK.mdNot yet written — owner WS01WS01 control
Control plane (console API, provisioning, gateway)apps/control-api/docs/RUNBOOK.mdNot yet written — owner WS01WS01 control

Priorities (from the spec)

LevelExamplesResponse
P0Cross-app data exposure, unauthorized charges, credential compromiseDisable the affected dangerous paths immediately; open incident command
P1Sign-in unavailable, purchase grants stuck, loss of webhook evidenceOn-call response; preserve evidence; enable the recovery path
P2Campaign delay, analytics lag, growing invalid-token rateBusiness hours, unless something is close to expiring
P3Cost trend, unused config, documentation driftPlanned work

Watch for missing work as well as failures. For example, no store notifications during a period of successful purchases is suspicious even when the error count is zero.

Kill switches (from the spec). Each switch has work it must leave running:

SwitchMust keep running
Campaign stopSign-in, purchase intake, refunds and account deletion
OTP channel offOther sign-in methods
Charge stopRefunds and verification of existing purchases
Tenant maintenance (Maintenance screen: suspend)Health, audit and recovery access

Identity (WS02)

From the spec. Covers sign-in unavailable (P1) and a partially failed account deletion.

  • First checks: which sign-in methods fail (Google, Apple, email OTP), and whether the provider connection is ready in Setup checklist. For a deletion: which stage is pending and why.
  • Safe mitigations: turn off only the failing OTP channel and keep the other methods. Never silently switch to SMS. For a stuck deletion, keep the user's access blocked and retry the stage idempotently. Never restore the user to active. Confirm store subscription state separately from local deletion. Keep the minimum audit and lawful finance records.
  • Escalate: a deletion that can't finish, or any suspected exposure of session or identity data (P0).

Connections (WS03)

From the spec. Covers a compromised provider credential and provider outage or rate limiting.

  • First checks: the scope, the provider's response code, and recent deploys. Tell credential or configuration failures apart from temporary rate limits. Use the connection's test history and evidence level.
  • Safe mitigations:
    • For a suspected compromise, Disable the connection. Find every app environment that used the key, revoke it at the provider, then create and test a replacement through Rotate.
    • Rotate any session, webhook or signing secrets the exposure included.
    • Reconcile payments and messages by operation ID, then restore features step by step.
    • Record the key fingerprint, never the key.
  • Escalate: any suspected credential compromise is P0.

Messaging (WS04)

From the spec. Covers queue backlog, DLQ growth and provider outage.

  • First checks: compare the age of the oldest pending message with its deadline. Find the cause: consumer errors, provider throttling, an unavailable app route, a schema mismatch or resource limits. Compare arrival and completion rates per app.
  • Safe mitigations:
    • Pause non-essential campaigns and protect transactional capacity.
    • Respect provider retry hints.
    • Once the fix is deployed, replay a small sample from Deliveries and check the outcomes before replaying more.
    • Never replay a whole mixed DLQ without filtering by environment, app, operation type and expiry. Expired items are dropped with a recorded reason, not sent late.
    • When the provider recovers, release the backlog gradually.
  • Escalate: transactional messages (OTP, receipts) at risk of missing their deadline.

Entitlements (WS05)

From the spec. Covers purchase grants stuck (P1).

  • First checks: open Entitlements for an affected user and see what their access comes from. Check whether the purchase reached commerce and was verified.
  • Safe mitigations: fix the root cause in commerce (verification, notifications, reconciliation) and let derived access rebuild. As a temporary measure, a tenant owner or billing operator can add a reasoned manual grant, and revoke it once store access arrives. Never grant access on an unverified client claim.
  • Escalate: grants stuck for many users, or any balance that looks wrong (credits never go below zero, so a mismatch means a ledger issue).

Commerce and finance (WS06)

From the spec. Covers purchase reconciliation mismatch and unauthorized charges.

  • First checks: the app, store and environment mapping is correct. Compare the normalized transaction state, the provider's evidence time and the entitlement derivation version.
  • Safe mitigations:
    • Start reconciliation, which fetches state from the provider through the approved adapter.
    • Replay a single stored store notification if it was missed.
    • Apply an audited adjustment only when provider evidence requires it.
    • Never edit original financial evidence, and never mark a charge successful without evidence. A campaign kill switch must not stop reconciliation.
  • Escalate: unauthorized charges are P0. Stop new charges and keep refunds and verification running.

Engagement (WS07)

From the spec. Covers campaign delay, cost spikes and provider outage.

  • First checks: campaign state and delivery counts on the campaign detail screen. Look for system pauses ("paused by system"), quota or budget refusals, and the app's policy profile.
  • Safe mitigations: Pause or Cancel the campaign (messages already handed over can't be recalled). Roll back remote config to an earlier release if a config change caused the problem. Lower the campaign rate or quota rather than stopping transactional traffic.
  • Escalate: sends to users who weren't eligible (consent), or spend beyond the policy ceiling.

Analytics (WS08)

From the spec. Covers analytics lag (P2), re-running an export and investigating a cost spike.

  • First checks: report freshness and whether data was sampled. Compare expected and observed unit volumes in Costs and budgets, then find the app, module or provider responsible.
  • Safe mitigations: stop optional work and apply a quota. Re-run an export as a new job (never keep a long browser request open), and check its checksum and expiry. Shared costs are shown as estimated.
  • Escalate: any export that seems to contain personal data beyond the approved projection (P0).

Platform (WS01)

From the spec. Covers database overload or approaching its size limit, and a bad release.

  • Database:
    • Record the affected database and owning app, and don't apply account-wide limits first.
    • Look for costly queries, missing indexes and write bursts.
    • Reduce campaign and analytics writes before sign-in and purchases.
    • Archive eligible history; fix indexes with a reviewed migration.
    • The control plane tracks database capacity against thresholds of 50%, 70% and 85%.
  • Bad release:
    • Freeze the rollout and record the current artifact and config IDs.
    • Check that the old code still works with the current schema.
    • Roll back app by app.
    • Keep callback endpoints accepting evidence.
    • Check sign-in, entitlements and purchases with known test accounts.
    • Don't restore a database to undo a harmless frontend bug.
  • Escalate: any cross-app data exposure is P0.

Control plane (WS01)

From the spec. Covers stuck provisioning, operator sign-in and restore.

  • First checks: Jobs and failures shows each job's step and error code. A job at awaiting_manual is waiting for an installation credential, not failing. If no one can sign in, check that operator email delivery or Google sign-in is configured (see /health/ready).
  • Safe mitigations: retry provisioning from the environment, which resumes the same resources and never recreates them blindly. Restores require a plan, bookmark, quiescence and approval, must target an isolated non-production database, and stop at a manual step. After a restore, revoke sessions that may have been resurrected and reconcile provider events after the restore time. A database restore does not bring back provider accounts, secrets, DNS, stored files or queues.
  • Escalate: a resource ownership conflict (RESOURCE_OWNERSHIP_CONFLICT) or any request to restore production.

Warning

Not yet enabled: the spec's diagnostics export, fleet-wide rollout pause, generic job retry, log and trace search, backup listing and the full export pipeline are not built yet. Use the job, audit and cost screens and the control-plane API until they land.