Substratal Apps Substratal Apps Hub Interface Specifications
GitHub

Docs 00-shared OPEN-QUESTIONS.md

Open Questions & Spec Gaps

Gaps between the API (openapi.yaml 1.0.0-draft.33) and what the Hub clients need. Each has a working assumption so building can start; the "Status" column says when each changed, by openapi.yaml revision (older entries also give the API docs version).

# Topic Gap Working assumption Affects Status
1 Avatar upload Was: the API stored avatar_url only. Draft.27 hosts avatars and Application icons (…/avatar/uploads, …/icon/uploads, presigned POST, then complete) ACC-01 and APL-02/03 upload through CLIENT-ARCHITECTURE §4.3. ACC-01, APL-02/03 Resolved (draft.27)
2 Push on Windows and Linux The API's providers are APNs, FCM and Web Push only — no WNS, and Linux desktops have no push service Windows and Linux poll unread-count / new inbox items (60 s while running, opt-in background) and raise local notifications and badges. Ask the API team whether to add a wns provider. NTF-*, Windows, Linux Resolved for iOS/macOS/Android/Web by the API's Push Notifications; open for Windows (WNS)
3 Hub as an Application Devices must belong to an Application The Hub is the first-party Application app_hub: access_tier: free, receives_platform_notifications: true, visibility: internal, with APNs/FCM/Web Push credentials. iOS and macOS share one bundle id (Universal Purchase) because an Application has one APNs credential with one topic. Confirm with the API team that one APNs topic per Application is intended, or ask for multiple topics. CLIENT-ARCHITECTURE §2, §6 Changed — was "Hub is not an Application"
4 SSO & passkeys SSO callback returns 501 (API #31). Passkeys shipped as a second factor in draft.32 Passkeys: web now; native apps behind passkeys until #32. SSO buttons stay hidden behind sso. AUTH-01/02, ACC-04/05, GLB-03 Passkeys resolved (draft.32); SSO open
5 Role holders Was: no GET /users?role_id= filter Built (draft.9): ROL-02 Holders links to USR-01 filtered by role_id. It lists explicit assignments only, so for an app's default_app_role ROL-02 adds "and everyone with access". ROL-02 Resolved
6 Bulk operations Draft.31 adds POST /users/bulk-invite, POST /users/bulk-suspend and POST /entitlements/bulk-update: up to 25 items, one Idempotency-Key per batch, 200 with per-item results USR-01 Suspend, ACX-05 Turn off and USR-02 Invite several use them in batches of 25 (CLIENT-ARCHITECTURE §4.5). Resend invitation and inbox Mark unread / Archive stay one request per row. USR-01/02, ACX-05, NTF-01 Resolved (draft.31)
7 Session and device names Session has user_agent + ip_address; Device has an optional name Hub sends a descriptive User-Agent, and registers devices with a readable name ("Dana's iPhone", "Chrome on macOS") the person can rename in NTF-03. The web BFF's refreshes show the person's real IP and browser once it signs the trusted client headers (#28). ACC-04, NTF-03 Partly resolved
8 Locale list No endpoint listing locales/time zones Use the platform's locale and IANA lists. SET-01 Open
9 App launch contract How each app receives the app token isn't standardized launch_url with #app_token= by default; per-app override client-side until the API adds a field. APP-03 Open
10 Store payment rules Standard is now a consumer subscription ($6.99/user/month or $76.99/user/year) that unlocks apps — App Store and Play generally require in-app purchase for digital subscriptions used in the app Mobile shows plan status and "Manage billing"; the Upgrade button is flag-gated per store (billing_upgrade_ios, billing_upgrade_android) and defaults off until legal/policy review (US external-purchase link entitlement, other regions' rules, or adding StoreKit / Play Billing products that the API would need to recognize). Web, macOS (outside the Mac App Store build), Windows and Linux upgrade on the payment page in the browser. BIL-01/02/03 Changed — was a B2B developer plan
11 Audit export Was: not in openapi.yaml Built (draft.8): AUD-01 Export… with POST/GET /audit-exports, behind audit_export. AUD-01 Resolved
12 Org suspension by admins Needs organizations.manage Org admins see no suspend control. ORG-08 Open
13 Test mode in UI test_mode on users, keys, webhooks, devices, notifications, subscriptions Developer builds expose test-mode sign-in; test-mode devices register with APNs sandbox; test-mode checkout needs the payment processor's test mode (409 test_mode_billing_unavailable otherwise). AUTH-01, KEY-, NTF-, BIL-* Extended
14 Web session storage No OS secure store in browsers Built in the web Hub: the BFF at hub.substratalapps.com holds the refresh token in the __Host-sub_rt cookie; sign-in goes straight to the API; refresh is single-flight across tabs (CLIENT-ARCHITECTURE §3.1). Web Resolved
15 CORS Web app needs Authorization, Idempotency-Key, If-Match, Substratal-Version allowed and ETag, Retry-After, Audit-Hot-Window-Start, Substratal-Version, Deprecation, Sunset exposed All allowed and exposed for https://hub.substratalapps.com (draft.9). Allow-listed origins may call any endpoint with a User token; API Keys are refused from a browser (400 api_key_in_browser). Web Resolved (draft.9): every header above is exposed, so the fallbacks are gone
16 Notifications not built yet Was: every Notifications operation returned 501 not_implemented All 17 operations are built (API 2026-10-18). Keep the flags so a 501 still turns a feature off safely. D13, APL-07 Resolved
17 Erasure vs. billing Deleting an account doesn't cancel a paid subscription ACC-08 warns subscribers and links to Manage billing first. Ask the API team whether erasure should cancel at period end. Staff now see the pending erasure date in USR-03 (GET /users/{id}/erasure-requests/current, draft.22). ACC-08, USR-03 Open
18 Annual plans / Standard trial Was: settled by the API (2026-10-18) as monthly only. Owner decision (2026-11-04): Standard is $6.99 per user per month or $76.99 per user per year, USD only, no trial. Checkout bodies take optional interval (month | year, default month); Subscription gains interval, and unit_amount is cents per user per interval. Yearly Organization seats added mid-year are prorated and invoiced at once; monthly isn't prorated F10 and F14 offer Monthly / Yearly before checkout; BIL-01/02 show the subscribed price and interval ("$6.99 per user a month" / "$76.99 per user a year") and "Yearly saves {amount} a year compared with monthly". No trial UI. BIL-01/02/03, F10, F14 Changed (2026-11-04) — yearly added
19 Price display Was: no endpoint returned the price before a subscription exists. GET /billing/prices now returns PlanPrice {plan, interval: month|year, unit_amount (cents per user per interval), currency: usd} (owner decision 2026-11-04; live since openapi.yaml draft.33) Show prices and the yearly saving from GET /billing/prices, and the subscription's own unit_amount and interval once one exists. It's in API-SCREEN-MAP.csv. If prices can't load, leave the price out; Subscribe still works. BIL-01/02 Changed (2026-11-04); API live 2026-11-05
20 Hub access disabled An admin can disable someone's app_hub Entitlement They can still sign in to the Hub (platform session) but can't register devices (403) — inbox-only mode with an explanation in NTF-03. NTF-03/04 New
21 Notification actions from the lock screen Accepting an org invitation from a notification needs a valid platform session Mobile/macOS require device unlock and refresh the session in the background; if refresh fails, open the app to ORG-09. ORG-09, NTF-02 New
22 Theme choice storage Settings only has theme (light/dark/system); there is no field for which light or dark theme light_theme / dark_theme are app_hub per-app settings: string enums with defaults moss-paper / forest-floor, declared in app_hub's settings_schema by the API repo's scripts/register-hub.sh. (Not appearance.*: the API's setting names can't contain dots.) Read them with GET /users/me/apps/app_hub/settings, write with PATCH, and keep a device copy for offline start. SET-01, THEMES.md Resolved (2026-10-24)
23 API version in a header The API version moved from the URL (/v1/…) to the required Substratal-Version request header (API v1.7.0) Every client sends Substratal-Version: 1 from its API client layer, uses the host-root base URL, and handles Deprecation/Sunset and unsupported_api_version with GLB-03 Update available / Update required (CLIENT-ARCHITECTURE §4.1). All New — resolved
24 Test-mode User expiry Specified (2026-10-20): test-mode Users get expires_at (24 h default) and 403 test_user_expired; built in draft.6 Developer builds show a test User's expiry on USR-03, with Extend… for users.manage, and handle test_user_expired like a suspended account (sign-in error, then AUTH-01). AUTH-01, USR-03 Resolved (draft.6)
25 Self-service app registration Built (draft.7): any User with a verified email can POST /applications APL-01 Register app shows for verified people behind app_registration_self_service; APL-02 hides moderation fields; APP-03 uses the hosted launch for a self-registered app (403 embedded_login_not_allowed on embedded). APL-01/02/03, APP-03 Resolved
26 SCIM provisioning SCIM 2.0 shipped (API v1.7.2): one token per Organization under /organizations/{id}/scim-token Org admins manage it in ORG-08 behind the scim flag. Groups and role mapping aren't supported by the API, so the Hub shows none. ORG-08 Resolved (built in the web Hub's ORG-08)
27 Console screens on native apps The C · Console screens (PRODUCT-SPEC §2a) read AWS through the web Hub's Ops gateway, a same-origin backend Web adopts them; native apps skip them. Revisit only if staff need operations on a phone, which would need the gateway reachable with a User token. OPS-, SEC-01, CFG-, RPT-01, INT-01 New
28 Trusted client IP from the web BFF The API accepts X-Substratal-Client-IP / -UA with an HMAC signature from a first-party backend (API #42). The web BFF doesn't sign them yet, so refreshes count against the BFF's IP and show it in Sessions and SEC-01 Add signing to the BFF's refresh and logout calls; then drop the SEC-01 caption. Web, ACC-04, SEC-01 New
29 Staff two-step and step-up Staff without TOTP lose admin access from 2026-11-05; sensitive operations need a second factor in the last 10 minutes (draft.24) GLB-03 Two-step required and Confirm it's you (CLIENT-ARCHITECTURE §4.2) on every platform. Passkeys will join TOTP when API PR #117 ships. GLB-03, ACC-04/05, USR-03/05, ROL-04, KEY-02/04, CFG-02 New
30 Pending API work Was: bulk (#116), passkeys (#117), legal (#118), Checkout confirm (#119), third-party access (#120); all merged by draft.33 and now in the spec Watch the API changelog; nothing is pending today. — Resolved
31 Naming the payment processor Users shouldn't see which company processes payments (owner decision, 2026-11-04) User-facing copy, flows, screen specs, help and diagrams say "payment page" (checkout), "billing portal" and "payment processor". Engineering docs may name Stripe where it's genuinely technical; the staff-only INT-01 Integrations and RPT-01 Reports screens keep it, because staff use the Stripe dashboard. BIL-*, ACC-08, F10, F14, help Resolved (2026-11-04)
32 Passkeys in native apps The API accepts passkey ceremonies only from web origins (https://hub., auth. and dashboard.substratalapps.com). Native APIs sign other origins: Android android:apk-key-hash:…; Apple's native API the associated domain; Windows Hello's API its own Ask the API team to accept the Hub's native origins (Android release-key hash, https://substratalapps.com for Apple with webcredentials Associated Domains, Windows) and to publish apple-app-site-association and assetlinks.json on substratalapps.com. Until then native apps keep passkeys off and offer TOTP; a User with only passkeys signs in natively with a recovery code or on the web. iOS, macOS, Android, Windows New
33 Third-party access tiers Draft.30: first_party Applications use Free/Standard; everyone else's are free or restricted (the developer grants access and charges however they like) APP-01/02 label restricted apps "Invite only" and never offer Upgrade to Standard for them; "What Standard includes" lists first-party apps only. APP-01/02, APL-02/03, BIL-01 New
34 App token plan claim Was: the API was adding plan to app tokens and EffectivePermissions. Shipped in draft.36 (a plain string; treat missing or unknown as free) The App token reference is on APL-03, and in help developers/authentication.md; APL-03's Free tier links to the API's Gating paid features in a free Application. Still no webhook for plan changes (out of scope for the API) APL-02/03, ACX-04/05, BIL-01 Resolved (draft.36)