Skip to content

Latest commit

 

History

History
82 lines (65 loc) · 7.87 KB

PREREQUISITES.md

File metadata and controls

82 lines (65 loc) · 7.87 KB

Prerequisites: verified before the build started

Checked: 2026-10-23, on the development Mac and against the live services. ✅ in place · ⚠️ works with a caveat · ❌ missing (with who or what unblocks it).

API versioning: the change every client must make

The Platform API no longer puts its version in the URL (API v1.7.0; spec 1.0.0-draft.9, API v1.8.0):

Before Now
https://api.substratalapps.com/v1/users/me https://api.substratalapps.com/users/me
version implied by the path Substratal-Version: 1 request header, required

Verified on production on 2026-10-23:

Request Result
GET /health (exempt from the header) 200 {"status":"ok"}
GET /v1/health 404: the old prefix is gone, with no redirect
GET /permissions without the header 400 api_version_required, details.supported: ["1"]
GET /permissions with Substratal-Version: 1, no token 401 unauthenticated, and the response echoes substratal-version: 1

In this app: the base URL is the host root (APIEnvironment.baseURL). APIVersion.current is a compile-time constant, and VersionMiddleware stamps the header on every request, including the exempt ones, which is harmless. It also records Deprecation/Sunset and 400 unsupported_api_version in APIVersionMonitor, which drives the GLB-03 banners. Unit tests cover each of these. The Hub help center documents the scheme for integrators (API versioning).

Development machine

Item Status Detail
macOS ✅ 26.6.2 (the app targets macOS 15+, tests on 26)
Xcode ✅ 27.0 (27A266a), macOS 27.0 SDK
Swift ✅ 6.4; the project builds in Swift 6 language mode with complete concurrency checking
XcodeGen ✅ 2.46.0, installed with Homebrew during this check. The .xcodeproj is generated from project.yml and not committed.
swift-openapi-generator ✅ 1.14.2 (SwiftPM). Generates and compiles the whole spec: 124 operations, about 53k lines.
Ruby ✅ rbenv; for the scripts/*.rb tools
Node.js ✅ For building the shared help center locally (make help-check)
Go ⚠️ 1.24.4 installed; the API needs 1.26, which go downloads automatically (GOTOOLCHAIN=auto). Only needed to run the API locally.
Docker + Compose ✅ 20.10.20 / v2.12.0. Runs the API's Postgres, LocalStack and Mailpit.
GitHub CLI ✅ Signed in as Adron

Signing and distribution

Item Status Unblocks
Apple Development certificate ✅ Team BJA9558E4B (Adron B Hall); local Debug builds are signed with it
Bundle ID com.substratalapps.hub ⚠️ decide Chosen here; nothing in the specs or the iOS repo fixes it yet. iOS must use the same ID (Universal Purchase), because app_hub has one APNs topic (CLIENT-ARCHITECTURE §2). Confirm, then register it as an App ID.
Registered App ID + provisioning profile ❌ The data-protection Keychain (device-only refresh token), Push Notifications and Associated Domains. Until then, a local build stores the session in the login keychain instead (KeychainStore falls back on errSecMissingEntitlement).
Developer ID Application certificate ❌ Notarized direct-download builds (the plan's distribution route). Only Apple Development is installed.
Developer ID Installer certificate ❌ Signing the .pkg (INSTALLER_IDENTITY / DEVELOPER_ID_INSTALLER_P12).
Notarization credentials (App Store Connect API key) ❌ notarytool in release.yml. Store as the secrets NOTARY_KEY_P8, NOTARY_KEY_ID, NOTARY_ISSUER_ID.
.pkg build ✅ scripts/build-pkg.sh builds SubstratalHub-<version>.pkg (Release archive, installs to /Applications, macOS 15+), verified locally on 2026-10-23. release.yml publishes it as a GitHub Release asset on a v* tag: unsigned pre-release until the Developer ID secrets are set, then signed, notarized and stapled.
Sparkle update feed host (downloads.substratalapps.com) ❌ Doesn't resolve. Can start as a GitHub Release asset plus an appcast on Pages.

Repositories and publishing

Item Status Detail
This repo's GitHub remote ✅ CompositeCode/substratalapps-macos, private, created 2026-10-23; main pushed.
GitHub Actions ❌ billing The first runs (2026-10-23) weren't started: "recent account payments have failed or your spending limit needs to be increased". Fix under the CompositeCode org's Settings → Billing & plans. Until then CI doesn't run; run make check locally. macOS runners use the most minutes, so set a spending limit that covers them.
Help center ✅ Not hosted here. The app's documentation lives in the shared Hub help center in the specs repo (private), published at https://specs.substratalapps.com/help/. The macOS guide and troubleshooting pages were moved there in specs PR #2. This repo's Pages, which the plan doesn't support for a private repo, isn't needed.
SPECS_DOCS_TOKEN secret ❌ optional Lets docs-dispatch.yml tell the help center to rebuild as soon as this app merges. Without it, the help center rebuilds daily.
API repo openapi.yaml (raw, main) ✅ 200. scripts/sync-openapi.sh vendors it; a scheduled workflow keeps it current.
Specs repo ✅ Up to date (cebf679, targets API v1.8.0). scripts/import-screens.rb imports its 75 macOS screens.

The API, for this app

Item Status Detail
Production API ✅ https://api.substratalapps.com, header versioning live
Every operation this app's MVP needs ✅ Users, entitlements, roles, applications, keys, webhooks, tenants, audit, organizations, notifications, billing
Local API devserver ✅ Verified end to end from a scratch clone: the app signs in, loads Capabilities (all 13 superadmin permissions), lists users, and resumes its session after a relaunch.
Superadmin password (go-live #20) ✅ Closed: staff can sign in to production
Alert emails #21, SES out of sandbox #22 ❌ Invitation, verification and reset emails reach real inboxes
Stripe #23 ❌ Plan & Billing (BIL-*) against production
Push credentials #24, register app_hub #25 ❌ Inbox push and device registration (NTF-*)
dashboard.substratalapps.com ❌ Doesn't resolve. Needed for Universal Links (apple-app-site-association), the forgot-password / verify-email / invitation pages, and Stripe return URLs. Owned by the web Hub.
Staff MFA enforcement ❌ API G13 #50; the app can nudge but not enforce
Application retirement ❌ API G15 #52
Capabilities in one call, feature flags ❌ API G11 #48; the app makes 5 calls and uses built-in flag defaults until then

Scope decision that changed since the plan

The specs repo now assigns the Operations console to the web Hub only (PRODUCT-SPEC §2a, OPEN-QUESTIONS #27). This app builds the Hub's Personal, Administration and Developer sections, and a test (noConsoleScreens) keeps console screens out of its catalog. See the update box at the top of PLAN-management-app.md.