# Changes in this package

This package targets **`openapi.yaml` 1.0.0-draft.33** (API docs v1.9.2, 2026-11-04; **154 operations**). From this revision on, API releases are named by their `openapi.yaml` revision, which is what clients are generated from; the API docs version moves on every API merge. Sections 14–17 are new in this revision, and 18 fixes contradictions found when the web Hub was audited against the spec; 08–13 came with draft.27 and the 2026-11-04 pricing decision. Earlier: draft.9 (124 operations; sections 03–07, previously mislabelled "v1.8.0"), draft.5 / docs v1.7.3 (121; 00–02), draft.3 / docs v1.4.0 (118), and docs v1.2.2 (98). The API changes, and what they did to the apps:

## 08. Applications: retire, delete, and a better list (draft.13–draft.18)

| API change | Effect on the Hub |
|---|---|
| `review_status: retired` (terminal), cascading cut-off; `DELETE /applications/{id}` for unreferenced test-mode apps | APL-03 gains **Retire application…** and **Delete test application…** (applications.manage), with confirm copy, error copy (`application_retired`, `invalid_review_transition`, `live_mode_required`, `application_not_deletable`, `application_in_use`) and a read-only retired state. New status `retired` in `status-semantics.json`; push credential `disabled` and device reason `application_retired`. |
| `ApplicationSummary` adds `owner_user_id`, `owner_organization_id`, `holder_count`, `review_requested_at`; `sort` | APL-01 shows Owner, Holders and "In review {n} days", a Retired filter and a sort menu. New APL-01 reference screen on every platform. |
| App owners manage their own app's Roles | ROL-01/02 open to owners for their apps; `422 unknown_permission`. |

## 09. Lists, delivery health and audit (draft.10–draft.21)

| API change | Effect on the Hub |
|---|---|
| `?include=total` → `page.total`, `page.total_capped` | Count captions on USR-01, ACX-05, APL-01, ORG-01/03, AUD-01, WHK-01/03, KEY-01, ROL-01 ("10,000+" when capped). CLIENT-ARCHITECTURE §4 Counts. |
| `GET /webhooks?status=&scope=platform`; `GET /webhook-deliveries`; `GET /webhooks/{id}/deliveries/{deliveryId}` | WHK-01 gets status and scope filters and a **Failed deliveries** tab; WHK-04 loads by id (deep links); OPS-05 lists failures across subscriptions. |
| `GET /push-credentials` across apps (staff, or an owner's own) | Push-health badges on APL-01 and GLB-02; failing credentials in OPS-05. |
| `GET /audit-events?request_id=` | AUD-01 request-ID filter, linked both ways with OPS-03 Logs. |
| `operations.view` / `operations.manage`, seeded `operator` role | Console gating no longer needs superadmin; Capabilities adds `canViewOperations` / `canManageOperations`. |
| Staff sessions get 600 `GET`s a minute | CLIENT-ARCHITECTURE §4 rate limits. |
| Trusted client IP from a first-party backend | CLIENT-ARCHITECTURE §3.1 (web BFF); OPEN-QUESTIONS #28. |
| Request log lines and job run records | OPS-02 per-operation latency and OPS-05 job outcomes are real data, not inferred. |
| Web Hub served at `hub.substratalapps.com`; Checkout sessions expire to `incomplete_expired` | BIL-01/03 copy for an expired checkout. |

## 10. Platform settings, usage and stats (draft.22–draft.26)

| API change | Effect on the Hub |
|---|---|
| `GET`/`PATCH /platform/settings`: `signup_open`, `read_only`, `announcement`, `client_flags` | Feature flags come from the API (CLIENT-ARCHITECTURE §10). CFG-02 edits settings (operations.manage). AUTH-03 shows a closed state; GLB-03 gains **Announcement** and **Read-only maintenance** banners. |
| `GET /usage`, `GET /stats` | RPT-01 is built on them; OPS-01 count tiles; **Usage** on APL-03 (owners) and KEY-04. |
| `rate_limit_per_minute` on API Keys (platform `api_keys.manage` only) | KEY-02/04 field. |
| `GET /users/{id}/erasure-requests/current` | USR-03 shows "Erased on {date}" and offers Cancel erasure only while one is scheduled. |

## 11. Staff two-step verification and step-up (draft.24)

| API change | Effect on the Hub |
|---|---|
| Staff without TOTP get `403 mfa_enrollment_required` (from 2026-11-05); `User.mfa_enrollment_required` | GLB-03 **Two-step required** → ACC-05; ACC-04 banner; USR-03 / ROL-04 notes. |
| Sensitive operations need a second factor within 10 minutes (`403 reauthentication_required`, `x-substratal-step-up`); `POST /auth/reauthenticate`; `mfa_verified_at` token claim | GLB-03 **Confirm it's you** sheet, prompted before the call when the claim is stale, and on the `403`. CLIENT-ARCHITECTURE §4.2. |

## 12. Hosted avatars and Application icons (draft.27, 6 new operations)

| API change | Effect on the Hub |
|---|---|
| `POST /users/{id}/avatar/uploads` → presigned POST → `…/complete`; `DELETE /users/{id}/avatar` | ACC-01 **Change photo** / **Remove photo** with a square crop; OPEN-QUESTIONS #1 resolved. |
| `POST /applications/{id}/icon/uploads` → `…/complete`; `DELETE /applications/{id}/icon` | APL-02/03 icon picker (square, ≤ 1 MB). |
| Images served from `https://assets.substratalapps.com`; `422 invalid_image`, `404 upload_not_found`, 10 uploads an hour | CLIENT-ARCHITECTURE §4.3; COPY-AND-STATES; web CSP allows the asset host. |

Also in this revision: legal links (Terms, Privacy, EULA, Cookie Notice, Licenses, Account and Data Deletion) on AUTH-03, SET-01 and ACC-08; the Ops gateway's real routes (`/ops-api/*`); stale "until G-n" notes removed for shipped API gaps; OPEN-QUESTIONS #1, #4, #6, #7, #14, #17, #26 updated and #28–#30 added.

## 13. Standard yearly pricing; the payment processor isn't named (owner decision, 2026-11-04)

| Change | Effect on the Hub |
|---|---|
| Standard is **$6.99 per user per month, or $76.99 per user per year** (was $6 a month, monthly only) | COPY upsell and plan copy; PRODUCT-SPEC §4; OPEN-QUESTIONS #10, #18, #19. |
| `GET /billing/prices` → `PlanPrice {plan, interval: month\|year, unit_amount, currency: usd}`; `unit_amount` is cents per user per interval, on `PlanPrice` and `Subscription` | BIL-01/02 load prices and show "Yearly saves {amount} a year compared with monthly". Live since `openapi.yaml` draft.33 (2026-11-05) and in API-SCREEN-MAP. |
| Checkout bodies take optional `interval` (default `month`); `Subscription` gains `interval` | F10 and F14 offer a **Monthly / Yearly** choice before checkout; BIL-01/02 show the subscribed price and interval ("$6.99 per user a month" / "$76.99 per user a year"); BIL-03 sends `interval`. |
| Yearly Organization seats added mid-year are prorated and invoiced at once; monthly isn't prorated | BIL-02 note and COPY "Yearly org seats" / "Monthly org seats". |
| Users don't see which company processes payments | User-facing copy, screen specs, flows (F10, F14 and their diagrams), mockups and help say "payment page", "billing portal" and "payment processor". Engineering notes name Stripe only where it's technical; the staff-only INT-01 and RPT-01 keep it. OPEN-QUESTIONS #31. |

## 14. Passkeys as a second factor (draft.32, 7 new operations)

| API change | Effect on the Hub |
|---|---|
| Register, list, rename and remove passkeys (`/users/{id}/mfa/passkeys…`); `mfa_enabled` means TOTP **or** a passkey | ACC-04 Passkeys list; ACC-05 offers Passkey (recommended) or Authenticator app; a first method needs a recent password sign-in (`403 recent_sign_in_required`). CLIENT-ARCHITECTURE §4.4. |
| `MfaChallenge.methods` includes `passkey`; `POST /auth/mfa/passkey-options`; `POST /auth/mfa/verify {passkey}` | AUTH-02 **Use a passkey**. |
| `POST /auth/reauthenticate/passkey-options`; `POST /auth/reauthenticate {passkey}` | GLB-03 Confirm it's you offers a passkey first. |
| Support reset removes passkeys too | USR-03 confirm copy. |
| Allowed origins are the web Hub's | Web supports passkeys now; native apps stay on TOTP behind `passkeys` (OPEN-QUESTIONS #32). |

## 15. Bulk operations (draft.31, 3 new operations)

| API change | Effect on the Hub |
|---|---|
| `POST /users/bulk-invite`, `POST /users/bulk-suspend`, `POST /entitlements/bulk-update`: 25 items, one `Idempotency-Key`, per-item results | USR-01 bulk Suspend (step-up), ACX-05 bulk Turn off, USR-02 **Invite several**. CLIENT-ARCHITECTURE §4.5; OPEN-QUESTIONS #6 resolved. |

## 16. Third-party Applications set their own access (draft.30)

| API change | Effect on the Hub |
|---|---|
| `first_party`; `access_tier` gains `restricted`; `standard` only for first-party apps (`422 access_tier_reserved`); owners choose free or restricted while approved or in review (`409 application_not_available`, 10 changes a day) | APL-02/03 tier choice and First-party toggle; APP-02 labels `restricted` apps "Invite only" and never offers Standard for them. OPEN-QUESTIONS #33. |

## 17. Search and checkout confirmation (draft.28–draft.30)

- `GET /applications?q=` and `GET /api-keys?q=` (prefix search): APL-01, KEY-01 and the command palette (GLB-01).
- `POST …/billing/checkout-sessions/{session_id}/confirm` applies a finished checkout at once on return (BIL-03, mapped with the 2026-11-04 pricing change).

## 18. Contradictions fixed after the web Hub audit (2026-11-08)

| Change | Effect on the Hub |
|---|---|
| Web compact bottom nav listed Home · Orgs · Admin · Developer · Account | web PLATFORM-SPEC §3 now matches INFORMATION-ARCHITECTURE §3: **Home · Inbox · Orgs · Manage · Account**, Manage being the GLB-02 hub. The other platforms already matched. |
| web SCREENS.md's Console preamble gave the gateway as `/ops/*` and gated it on superadmin "until `operations.view` exists" | Same text as SCREEN-SPECS: same-origin **`/ops-api/*`**, gated on `operations.view` (superadmin and operator). |
| RPT-01 and INFORMATION-ARCHITECTURE §2 disagreed on who sees Reports | One rule: `users.list` or `operations.view` or an Application's owner, behind flag `reports`; the Administration section shows for `operations.view` too. |
| RPT-01 promised growth "over time" from `GET /stats`, which has current counts only | Growth, access, subscribers and delivery read **as of now**; their trends wait for a history endpoint. Reports may stack every report on one page instead of a Report select. |
| ORG-09 showed an inviter the API doesn't return | Shows the organization's name only. |
| NTF-03 (Hub devices only) and APL-07 (test your app's credential from NTF-03) disagreed | NTF-03 tests Hub devices only; APL-07 says an app proves its credential with its own test call, which `POST /users/{id}/devices/{deviceId}/test` allows for the device's user or the app's own key. |
| OPS-01 "Recent security events" wanted the 5 newest, a billed log scan on every load | Shows counts from the security metrics; SEC-01 lists events on demand. |
| Additions the web Hub made, now spec'd | OPS-01 time range and status chip strip; OPS-02 p50/p99 and on-demand per-operation SLOs; SEC-01 range, event-type filter, on-demand event list and OPS-03 log-search links; CFG-02 list of keys with their own rate limit (`GET /api-keys`, mapped in API-SCREEN-MAP); the gateway's `501 not_implemented` "Not set up here" card state and the offline banner (Console preamble). |

## 19. The app token's `plan` claim (draft.36, 2026-11-23)

Requested by Interlined List. Draft.36 (API PR CompositeCode/substratalapps.com#225) puts the User's plan in every app token (`POST /auth/app-tokens`, `POST /auth/oauth/token`) and in `EffectivePermissions.plan` (required) on `GET /users/{id}/apps/{appId}/effective-permissions`. It's a plain string, `free` or `standard` today; treat a missing or unknown value as `free`. It isn't configurable, and there's no webhook for plan changes: a change shows up in the next token issued, within 5 minutes. No `Substratal-Version` bump.

| API change | Effect on the Hub |
|---|---|
| App tokens carry `plan` | APL-03 explains each access tier under its select (Free mentions `plan` and links to the API docs), asks before changing a live app's tier (who gains or loses access), and gains an **App token** card: a sample decoded token for the app with one line on `entitlement_status`, `effective_permissions` and `plan`. APL-02's Free hint mentions `plan`. |
| `EffectivePermissions.plan` | ACX-04 shows **Plan in their next app token**, so support can see why a paid feature is locked. |
| — | ACX-05 filtered to one app (APL-03's Access tab) says what its access tier means, linking to APL-03 (`GET /applications/{id}`). |
| — | BIL-01 says apps can see whether you're on Free or Standard (the plan only, never billing details). |

Copy is in COPY-AND-STATES **Access tier and the plan claim** and **Confirmations**. Built in the web Hub (substratalapps.com-web #454). **The native Hub clients (iOS, Android, macOS, Windows, Linux) need the same change.**

## 00. API version moves from the URL to a header (API v1.7.0–v1.7.3)

**Breaking for every client.** The `/v1` path prefix is gone; requests name their version in a header instead, so endpoint URLs stay the same across every future version.

```
POST https://api.substratalapps.com/users
Substratal-Version: 1
```

| API change | Effect on the Hub |
|---|---|
| Paths drop `/v1` (`POST /v1/users` → `POST /users`); `/v1/…` returns `404 not_found`, no redirect | Base URL is `https://api.substratalapps.com` (CLIENT-ARCHITECTURE §4). Every path in `API-SCREEN-MAP.csv` and the screen specs is now unprefixed, matching `openapi.yaml`. |
| `Substratal-Version` required on every request; `400 api_version_required` / `unsupported_api_version` with `details.supported`; echoed on every response | The API client layer sends `Substratal-Version: 1` on every call, pinned per build. New CLIENT-ARCHITECTURE **§4.1 API versioning**. |
| Exempt: `GET /health`, `POST /auth/oauth/token`, `/.well-known/*`, `/scim/v2` | Nothing to special-case: sending the header to them is harmless. |
| `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) on responses to a deprecated version; `unsupported_api_version` after `Sunset` | GLB-03 gains **Update available** (banner) and a defined **Update required** (blocking) state, with copy in COPY-AND-STATES. New telemetry `api_version_deprecated`, `api_version_unsupported`. The PWA can't read `Deprecation`/`Sunset` until the API exposes them through CORS (OPEN-QUESTIONS #15). |
| `openapi.yaml` declares the shared `ApiVersion` header parameter (draft.5) | Regenerate clients from draft.5; set the header in middleware, not per call. |
| Webhook `api_version` (a date) is versioned separately from `Substratal-Version` | WHK-02/WHK-03 label it **Payload version** (mockups and renders updated) so the two aren't confused. |
| `405 method_not_allowed` with `Allow` for a known path and wrong method | Treated as a client bug: logged, generic error. |
| Additive changes ship within a version | Decoders ignore unknown fields and enum values. Persistent caches are tagged with the API version and dropped when it changes. |

## 01. SCIM provisioning (API v1.7.2, 3 new operations)

| API change | Effect on the Hub |
|---|---|
| `POST`/`GET`/`DELETE /organizations/{id}/scim-token` (org admin or `organizations.manage`) | **ORG-08** gains a SCIM provisioning section: status, set up / rotate (one-time secret with `base_url`), turn off. Behind the `scim` flag. |
| `/scim/v2` is called by identity providers | Not called by the Hub. Provisioned people arrive as ordinary invitations (ORG-03, ORG-09). |

## 02. Other API updates since v1.4.0

- **Push notifications are built** (2026-10-18): no Notifications operation returns `501` any more (OPEN-QUESTIONS #16 resolved). Flags stay as a safety net.
- **Billing options settled**: monthly USD only, no annual plan, no trial (OPEN-QUESTIONS #18 resolved). Superseded by §13: yearly added 2026-11-04.
- **`idempotency_key_reused` is `409`**, not `422` (corrected in CLIENT-ARCHITECTURE and COPY-AND-STATES).
- Test-mode User expiry, self-service app registration and audit exports, in progress at v1.7.3, shipped in draft.9: see sections 03–05.

## 03. Test-mode User expiry (API draft.6)

| API change | Effect on the Hub |
|---|---|
| Test-mode Users have `expires_at` (24 h default, at most 30 days after creation); live Users always `null` | USR-03 shows it for test-mode Users ("Expires in 3 h") in developer builds. |
| `users.manage` may move `expires_at` with `PATCH /users/{id}`, which also brings back an expired User until the 30-day purge | USR-03 gains **Extend…** (test-mode Users only). |
| Login, MFA verify and refresh return `403 test_user_expired`; no token outlives `expires_at` | AUTH-01 shows "This test account has expired." A running session ends with `401` like any revoked session. OPEN-QUESTIONS #24 resolved. |

## 04. Self-service Application registration (API draft.7)

| API change | Effect on the Hub |
|---|---|
| Any User with a verified email can `POST /applications`; it starts `pending_review`, `public`, `standard`, owned by the caller or an Organization they're an `org_admin` of | APL-01 **Register app** shows for everyone with a verified email (flag `app_registration_self_service`), and is disabled with a reason until the email is verified (`403 email_not_verified`). OPEN-QUESTIONS #25 resolved. |
| Moderation fields (`visibility`, `access_tier`, `review_status`, `review_notes`, another owner) are staff-only: `403 moderation_field_forbidden`; 10 submissions per User per day | APL-02 hides them for non-staff. |
| Applications gain read-only `self_registered`; only `applications.manage` can turn on `receives_platform_notifications` for one | APL-03 shows a **Third-party** chip, and the Platform alerts toggle is disabled with a reason for the owner. |
| `POST /auth/app-tokens` refuses a self-registered Application: `403 embedded_login_not_allowed` | APP-03 uses the hosted launch for it (flag `hosted_launch`); until hosted launch ships, it opens the app's `launch_url` without a token. |
| Platform-managed Entitlements are granted only once an Application is approved | APL-02's result copy no longer promises access on registration for a self-service app. |

## 05. Audit Event exports (API draft.8, 2 new operations)

| API change | Effect on the Hub |
|---|---|
| `POST /audit-exports` takes the AUD-01 filters plus `format` (`ndjson` or `csv`), needs `Idempotency-Key`, returns `202` | AUD-01 gains **Export…** (flag `audit_export`) using the current filters. OPEN-QUESTIONS #11 resolved. |
| `GET /audit-exports/{id}` shows `status`; once `ready`, a `download_url` signed for 15 minutes; files kept 7 days; 20 per caller per day | Poll every 3 s while `pending`/`running`, then offer the download. Re-fetch the export for a fresh link. `429` → "You can export 20 times a day." |
| New audit action `audit.exported` | Grouped under `audit.*` in the AUD-01 action filter. |

## 06. Console milestone M1 (API draft.9, 1 new operation)

| API change | Effect on the Hub |
|---|---|
| CORS: allow-listed origins may call every endpoint with a User token, and browsers can read `Retry-After`, `Audit-Hot-Window-Start`, `Deprecation` and `Sunset` | The PWA honours `Retry-After`, shows the AUD-01 hot-window caption and GLB-03 **Update available**, with no fallbacks. OPEN-QUESTIONS #15 resolved. |
| An API Key sent from a browser is refused: `400 api_key_in_browser` | The Hub never sends API Keys; KEY-03 says to use the secret from a backend. |
| `GET /users?role_id=` (repeatable, explicit assignments, up to 20) | ROL-02 **Holders** links to USR-01 filtered by the Role. OPEN-QUESTIONS #5 resolved. |
| `POST /users/{id}/sessions/revoke-all` (self or `users.manage`; `keep_current` for self), returns `{revoked}`; `revoked_reason` `revoked_all`; audit `user.sessions_revoked` | ACC-04 **Sign out of all other sessions** is one call with `keep_current: true`. USR-04 gains **Sign out everywhere** for staff. |

## 07. Console screens (web)

The management console is the web Hub, built management-first (see the web console plan in `CompositeCode/substratalapps.com-web`). It adds 12 screens in a new **C · Console** domain: OPS-01…07, SEC-01, CFG-01, CFG-02, RPT-01 and INT-01. They're listed in PRODUCT-SPEC §2a with an **adopt** or **skip** decision per platform (web adopts them; the native apps skip them for now) and the API gap each depends on, and specified in SCREEN-SPECS § C. The 75 shared screens are unchanged in number.

## 09. The web Hub's address (this revision)

The web Hub is served at **`https://hub.substratalapps.com`**, not the planned `dashboard.substratalapps.com` (never served, dropped).

The new host now appears everywhere the old one did:

- deep links and Universal Links / App Links (INFORMATION-ARCHITECTURE §4)
- billing return URLs (CLIENT-ARCHITECTURE §9)
- the web platform spec and the help center

The API's emailed links and CORS allow-list move with it, in API PR #76. The section numbers in entries 00–08 above still name the old host; they're history.

## 08. Product naming (this revision)

PRODUCT-SPEC gains **§0 Names**:

- The product is **Substratal Hub** on every platform, with "the Hub" as the short form.
- **Substratal** is the name where space is tight: home-screen and launcher labels, and the PWA `short_name`.
- **Substratal Apps** is the brand, and **Substratal Apps Platform API** is the API.
- "Dashboard", "console" and "admin app" aren't product names.
- The web app's manifest `name` changes from "Substratal" to "Substratal Hub", with `short_name` "Substratal" (web PLATFORM-SPEC §7).

## 08. Hub identifiers and theme settings (2026-10-24)

- **Bundle id** `com.substratalapps.hub` on iOS and macOS (shared, for Universal Purchase and the one APNs topic), and Android `applicationId` `com.substratalapps.hub`; Linux app ID `com.substratalapps.Hub`; Windows package identity `CompositeCode.SubstratalHub`. The iOS app moved from `com.substratal.hub`.
- **Theme settings** are `light_theme` and `dark_theme` on `app_hub`, not `appearance.*`: the API's setting names can't contain dots. OPEN-QUESTIONS #22 resolved.

## 09. Bulk endpoints and the new MFA alert (2026-10-27)

- **Bulk operations** (API PR #116): `POST /users/bulk-suspend`, `POST /users/bulk-invite` and `POST /entitlements/bulk-update` replace one-request-per-row for USR-01 Suspend and ACX-05 Turn off, with per-item results. OPEN-QUESTIONS #6 resolved.
- **Platform alert `security.mfa_method_removed`** (API PR #117): an MFA method was removed but two-step verification is still on. It gets the same "Secure my account" action as `security.mfa_disabled`.

## 0a. Themes (this revision)

- Adds the **theme system**: 5 light themes (Teal Ledger, Indigo Root, **Moss Paper**, Coral Clay, Spore Pink) and 5 dark themes (Night Soil, Deep Teal, Graphite Spore, **Forest Floor**, Ember Clay). Defaults are Moss Paper and Forest Floor. Rules are in `THEMES.md`; tokens are in `themes/themes.json` and `themes/themes.csv`.
- **SET-01** now has Light theme and Dark theme pickers next to Appearance, plus a new reference screen `SET-01-appearance-themes` on every platform. The choices are stored as `app_hub` settings (OPEN-QUESTIONS #22).
- Every reference screen and mockup is rendered in **both default themes** (`screens/light/`, `screens/dark/`). Mockups preview any theme with `?mode=dark&light=<id>&dark=<id>`.
- New per-platform theme code in `<platform>/theme/`: Swift `ThemeStore` and palettes (iOS/macOS); WinUI theme dictionaries and `ThemeService` (Windows); Material 3 colour schemes (Android); libadwaita CSS (Linux); CSS variables with a TypeScript resolver (web).
- COMPONENTS adds **ThemePicker**. CLIENT-ARCHITECTURE adds §13 Themes. Theming is now in scope (PRODUCT-SPEC).

## 0. Logo standard and app icons (this revision)

- Adopted logo: **interlined root twist** mark with the `[substratal]` wordmark (JetBrains Mono, coral brackets, ink `sub`, teal `stratal`, `◆ apps` descriptor). Rules: `brand/BRAND.md`.
- Placed in every design: AUTH-01/02 sign-in (all platforms), web sidebar header, Windows title bar, notification rows for `source: platform`. Reference screens and mockups have been re-rendered.
- New per-platform kits under `<platform>/brand-assets/`: Xcode asset catalogs (AppIcon with dark/tinted, Icon Composer layers, logo imagesets, colour sets), `.icns`, Windows `.ico` and full MSIX asset set, Android adaptive/themed/notification icons as vectors and PNGs, Linux hicolor and symbolic icons with `.desktop` and AppStream branding, and the web favicon set, PWA icons (any/maskable/monochrome), Web Push badge and OG image.
- Each `PLATFORM-SPEC.md` has a new **Brand & app icon** section. COMPONENTS adds **BrandLockup**.

## 1. Push notifications and the notification inbox (API: Push Notifications, 17 new operations)

| API change | Effect on the Hub |
|---|---|
| Devices per Application (`/users/{id}/devices`), APNs / FCM / Web Push | The Hub registers itself as first-party app **`app_hub`** and registers each install (CLIENT-ARCHITECTURE §2, §6). New flow F12, screens **NTF-03 Devices & notifications** and **NTF-04 Turn on notifications**. |
| Inbox (`/users/{id}/notifications`, unread-count, mark-read) | The client-composed inbox is gone. **NTF-01 Inbox** and **NTF-02 Notification** read the real inbox; badges use `unread-count` everywhere. Inbox is a top-level destination on every platform (mobile tab bar: Home · Inbox · Orgs · Manage · Account). |
| Platform alerts (`security.*`, `account.*`) pushed to apps with `receives_platform_notifications` | `app_hub` opts in; categories get native actions (Review sessions, Accept invitation…). Flow F13. |
| `notifications.push` channel in Settings (global and per app) | Push toggles in SET-01 and SET-02. |
| Push credentials per Application (`/applications/{id}/push-credentials`) | New **APL-07 Push credentials** tab for app owners; `receives_platform_notifications` toggle on APL-03. Flow F15. |
| `notifications.send` permission and `POST /users/{id}/notifications` | New staff tool **NTF-06 Send notification**; app keys can carry confined `notifications.send` (KEY-02). |
| Support can read any inbox and devices (`users.list`), delete devices (`users.manage`) | New user-detail tab **NTF-05**. Flow F16. |
| Webhook events `device.*`, `notification.push_failed`, `push_credential.failed` | WHK-02 event list and "Push health" preset. |
| Logout / session revoke / suspend / delete deactivate devices | Copy for sign-out, suspend and "sign out everywhere" updated. |
| All Notifications operations return 501 until implemented | Everything above ships behind flags that a 501 turns off. |
| No WNS provider; no Linux push | Windows and Linux keep polling and show local notifications (OPEN-QUESTIONS #2). |

The old push-relay assumption (previous OPEN-QUESTIONS #2) is withdrawn for iOS, macOS, Android and Web.

## 2. Free / Standard pricing (API: Billing rewritten)

| API change | Effect on the Hub |
|---|---|
| Developers/Tenants are no longer billed; Tenant `plan`, `subscription_status`, `restricted` and `/tenants/{id}/usage` removed | Old "Plan & usage" developer screen removed. **BIL-04 Tenant & infrastructure** keeps tier/region and tier-change requests only, under Developer › Tenant. |
| Users have `plan` and `plan_sources`; `GET /users/{id}/subscription`; individual Checkout/Portal | New **BIL-01 My plan** under Personal › Plan & Billing (Account on mobile). Flow F10 rewritten. |
| Organization subscription with `member_scope` and Checkout/Portal | New **BIL-02 Organization subscription** tab on organizations. Flow F14. |
| Checkout success ≠ coverage; poll until `plan = standard` | **BIL-03** returns to `https://dashboard.substratalapps.com/billing/return…` and polls. |
| Applications gain `access_tier` (`free` / `standard`) | Home separates "Included with Standard" tiles with an upsell; APL-02/03 show access tier (staff-only field). |
| `402 subscription_required`, plan caps, `seat_limit` removed; `plan_limit_reached` reserved | Removed from every screen and from COPY. |
| Store policy | Standard is now a consumer subscription unlocking apps → mobile upgrade buttons default off pending policy review (OPEN-QUESTIONS #10). |

## 3. Platform-managed entitlements

| API change | Effect on the Hub |
|---|---|
| `Entitlement.source` adds `free` and `subscription`; `subscription_id` | New source labels; APP-02 and ACX-01 show "Managed by Substratal" paths. |
| Only disable / re-enable allowed; anything else `409 entitlement_platform_managed` | ACX-01/03 hide term, scope and delete for those rows; confirm copy explains. |
| Platform rows and developer grants coexist | ACX-02 no longer blocks on platform rows; ACX-05 adds a "Show platform-managed" filter. |

## 4. Smaller changes

- Audit hot window is one year for every Tenant (AUD-01 reads `Audit-Hot-Window-Start`); new audit actions `subscription.*`, `push_credential.*`, `device.deleted`.
- Seed role `superadmin` gains `notifications.send`; `billing.manage` now means people's and organizations' subscriptions.
- Signup with an invited user's email returns `409 email_taken` and re-sends the invitation (AUTH-03 copy).
- ID prefixes added: `sbs_`, `dvc_`, `pcr_`, `ntf_`, `ndl_`.
- Web host is `https://dashboard.substratalapps.com` (matches the API's billing examples).

## 5. Package changes

- 75 screens (was 68): +NTF-01…06, +APL-07, BIL screens replaced; GLB-03 Inbox folded into NTF-01; GLB-02 is now the combined **Manage** hub; GLB-03 is System states.
- 16 flows (was 11): F10 rewritten; F12–F16 added.
- New: `CHANGES.md`. Updated: every shared document and every platform spec and screen list; mockups add Inbox, Devices, My plan, and Push credentials screens.
