SPB Git

Repository Public MIT

BASELINE_AUDIT.md 7.0 KB

# ORIX Astra — Baseline audit

Audit date: 2026-11-21. Everything below was observed on the development Mac or on the cluster that day; nothing is assumed.

# 1. Repository and environment

Item Observed
Existing ORIX Astra project None. No local folder, no repository on the forge (git.spboucher.ai), no App Store Connect record looked up yet. This is a new project.
Project location ~/Desktop/Cluster/apple/ORIXAstra (the laptop is the home of Apple apps; every other component of the ecosystem is edited on its node).
Git New repository, branch main, initialised 2026-11-21. Nothing existed to preserve.
Xcode 27.2 (27B52)
Swift 6.4.2
SDKs iOS 27.2, iOS Simulator 27.2
Tools present xcodegen, gh. Absent: swiftlint, swiftformat, fastlane (not needed; none of the sibling apps use them).
Simulators iPhone 17 Pro runtime available. A dedicated simulator named “ORIXAstra iPhone” is used so that the sessions building other ORIX apps on this Mac are not disturbed.
Physical iPhone None attached (xcrun devicectl list devices lists simulated devices only). Consequence: nothing in this project has been run on a real iPhone on this date. MLX does not run in the iOS Simulator, so on-device MLX inference is verified on this Apple-silicon Mac (same framework, same weights) and is explicitly not claimed as an iPhone measurement.
Signing identities Apple Development: Simon-Pierre Boucher, Developer ID Application: Simon-Pierre Boucher (3YM54G49SN). Developer ID is for notarised macOS apps and is not used here. iOS distribution signing is automatic through the team App Store Connect API key already on this Mac (same mechanism as the sibling apps).
Apple team 3YM54G49SN

# 2. The ORIX ecosystem (what exists and what is reused)

Sixteen ORIX apps live under ~/Desktop/Cluster/apple/ (Calc, Scan, Audio, Camera, Secure, Arcade, Alarm, Monitor, Clean, Convert, Sheet, Docs, DJ, Automation…). Shared conventions observed and followed:

  • Project generation: XcodeGen (project.yml), the .xcodeproj is never committed.
  • Bundle identifiers: ai.spboucher.orix.<name> → ORIX Astra proposes ai.spboucher.orix.astra (availability to be confirmed when the App ID is registered).
  • Structure: local Swift packages for engines, a thin app target, Swift 6 language mode.
  • Scripts: Scripts/build.sh, screenshots.sh, release.sh archive|export|validate|upload, secret-scan.sh, asc.py.
  • Launch arguments prefixed -ORIX… for screenshots and UI tests, DEBUG only.
  • Forge: gitsrv:srv/git/<name>.git (public) — the forge has no private repositories under srv/git; private ones live in srv/git-private.
  • Site: www.orixlab.dev (Next.js, node m4mm) lists the apps and serves verified downloads.
  • Source headers: applied by the spb-header tool, never written by hand.
  • README standard: logo, badges, architecture diagram, family table.

Each ORIX app has its own design system; there is no shared UI package to import. ORIX Astra therefore defines its own (AstraDesign), consistent with the family's conventions (SF typography, Dynamic Type, opaque surfaces, dark and light).

Source What it is Reuse in ORIX Astra
Local Chat (apple/LocalChat) Native local-AI app by the same owner: MLX Swift LM 3.33.0, Apple Foundation Models, model hub, GRDB stores, Markdown/LaTeX renderer. 195 tests, real MLX inference verified on macOS. Never run on a physical iPhone either. The MLX and Foundation Models integration, the download logic and the Markdown / math renderer are adapted (same dependency versions, known gotchas carried over). Local Chat itself is not modified.
SP Chat iOS (apple/SPChat-iOS) Native client of the owner's chat backend. The vector provider-logo catalogue (71 SVG image sets) is reused for provider and vendor marks.
SP Chat backend (node M4M64c) Web chat with OpenAI, Anthropic, xAI, OpenRouter and a local LLM server. Configuration convention only: provider keys are environment variables (OPENAI_API_KEY, ANTHROPIC_API_KEY, XAI_API_KEY, OPENROUTER_API_KEY, LOCAL_LLM_API_KEY).
VQuant backend (node M2U64) Uses GEMINI_API_KEY. Same convention.

# 4. Credentials found and how they are used

A scan of the deployed applications' environment files (variable names only, values never read into any log or report) found development keys for five cloud providers plus the owner's own inference server:

Provider Variable Where Used here for
OpenAI OPENAI_API_KEY SP Chat Live smoke tests
Anthropic ANTHROPIC_API_KEY SP Chat Live smoke tests
xAI XAI_API_KEY SP Chat Live smoke tests
OpenRouter OPENROUTER_API_KEY SP Chat Live smoke tests
Google Gemini GEMINI_API_KEY VQuant Live smoke tests
Owner's LLM server (OpenAI-compatible) LOCAL_LLM_API_KEY SP Chat Live test of the custom-endpoint path

Handling: Scripts/smoke-env.sh reads each value over SSH directly into an environment variable of the test shell and prints only loaded / MISSING. Keys are never written to disk on the laptop, never committed, never embedded in the app, never shown in a screenshot, and never sent anywhere but to their own provider. The shipped app contains no key of any kind: users bring their own, stored in the Keychain.

# 5. Baseline build and test results

There was no code before this project, so the baseline is empty: 0 targets, 0 tests. The first measured results are recorded in docs/TEST_RESULTS.md.

# 6. What had to be built

Everything specific to ORIX Astra: the core contracts (typed stream events, provider protocol, orchestration, context budgeting, cost accounting, redaction), five cloud adapters plus custom endpoints, the MLX and Foundation Models adapters with a verified model catalogue and a mirror-first download coordinator, the persistence layer, the agent runtime, the design system, every screen, the tests, and the model library hosting on www.orixlab.dev.

# 7. Not supported / constraints discovered

  • No physical iPhone attached: device-only verification (MLX on iPhone, Foundation Models on an eligible device, memory pressure, thermal behaviour, haptics, Face ID, dictation) remains to be done by the owner on hardware.
  • MLX cannot run in the iOS Simulator; the app says so there and offers cloud and Apple Intelligence paths instead.
  • iOS does not allow GPU inference in the background in the general case; ORIX Astra does not claim background generation.
  • No arbitrary code execution, shell or cross-app automation on iOS; the agent tools are limited to what the sandbox allows.
  • Mirroring model weights on www.orixlab.dev is only done for licences that permit redistribution without conditions the site does not yet meet (Apache-2.0, MIT). Gemma and Llama weights carry redistribution conditions and are downloaded from Hugging Face until the owner decides otherwise.
Files main
Menu

Theme