Bundle layout

Application bundle
Anacom Earth.app/Contents
  MacOS/AnacomEarth        native shell (Swift): window, WKWebView locked to its loopback origin
  Resources/runtime/       standalone CPython 3.12 (pruned) and locked, hash-verified dependencies
  Resources/app/           application and CLI code, build-info.json, precompiled web assets
  Resources/bin/perichora  CLI wrapper using the bundled Python
  Resources/legal/         third-party notices, CycloneDX SBOM, release allowlist

The bundle needs no developer toolchain on the user’s Mac: no system Python, Node.js, Git or Xcode. The Swift shell uses the system WebKit, so there is no bundled Chromium. Everything inside the bundle is replaceable; everything outside it is user data.

Components and trust boundaries

Components and their boundaries
BoundaryInputs and authorityEnforcement
Swift shell → launcher → WKWebViewBundled Python, private runtime home, per-start pairing codeInstance lock, literal loopback listener (listening before readiness is announced), ephemeral browser store, navigation delegate
React / MapLibre → research APILocal read requests; bundled catalogue and provenance documentsLoopback Host and Origin checks, GET only, resource limits, pinned catalogue digest; missing evidence stays unknown
Browser or CLI → management APISingle-use pairing code minted from a private owner secret; expiring session; CSRF tokenSeparate /manage/v1 gate, exact routes and methods, origin and fetch-metadata policy, one operation at a time, audit log
Management → distribution → registryOwner-pinned publisher key; expiring, sequenced, signed catalogue; exact signed manifest and payloadConsent bound to the manifest digest, revocation checked before publication, no implicit activation
CLI → scheduler → workerAuthenticated, bounded job; independently pinned model; declarative numeric adapterPrivate scratch, process groups, time and memory limits, cancellation, bounded queue
Owner → application updaterExplicit target; signed application-purpose manifest; pinned or independently supplied key; ZIPPlatform, sequence, bundle and archive verified before activation; journaled atomic exchange; recoverable after a crash

Data location

Runtime and scientific data live in the Perichora home, by default ~/.local/share/perichora (override with PERICHORA_HOME): models, publishers, catalogues, jobs and datasets. The application adds an earth/ folder there for its instance record, per-start management secret, audit log and release state.

Updates replace only the bundle. Uninstalling moves the bundle to the Trash and never deletes models, datasets, trust or settings.

Why this shape

The engineering team evaluated Electron, Tauri, PyInstaller-style freezers, a .pkg installer and a plain browser launch. The chosen design adds no second runtime, no extra unlocked build dependency, no administrator rights, and keeps every shipped file auditable against the release allowlist.

Out of scope