Files
museion/Museion/AGENTS.md
T
AlexKucera 292aad7a43
CI / ci (push) Canceled after 0s
build: disable App Sandbox per ADR-0009
Flip ENABLE_APP_SANDBOX to NO in both configurations: the engine
gate spawns the user-installed hermes binary and provisioning
writes outside any container. Hardened runtime stays ON for
Developer ID notarization. No entitlements file.

Closes #37.
2026-09-03 13:15:13 +02:00

33 lines
1.8 KiB
Markdown

# Museion (app target)
## Purpose
The Museion application target: the native SwiftUI macOS app shell of the Agentic Writing Environment. Everything user-visible lives here.
## Ownership
Owned by the root AGENTS.md contract. The `.xcodeproj` uses **filesystem-synchronized groups** — files on disk are the truth; add/move/delete sources here and Xcode follows. Never hand-edit project.pbxproj beyond plain build-setting values (bundle id, version, Swift version).
## Local Contracts
- Entry point: `MuseionApp.swift` (`@main`, single `WindowGroup` scene).
- `AppMetadata` is the single source for the displayed app name and tagline; members are `nonisolated` (default-MainActor project).
- Swift language mode 6, `SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor`; deployment target 26.5; bundle id `com.babylondreams.Museion`.
- App Sandbox is OFF (ADR-0009) — the engine gate spawns the user-installed `hermes` binary and provisioning writes outside any container; hardened runtime stays ON for Developer ID notarization. No `.entitlements` file.
- No persistence layer yet — the SwiftData template was stripped; vault-vs-database gets an ADR when the need is real.
- Tabs for indentation; SwiftFormat + SwiftLint must both stay clean.
## Work Guidance
- Native SwiftUI only — no web-editor embedding, no Electron-style components (ADR-0001).
- Text editing gets built on TextKit 2 / SwiftUI directly; no CodeMirror/ProseMirror-class dependencies.
## Verification
- `xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' build`
- `xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' test`
## Child DOX Index
- None yet — add child docs when subdirectories with distinct responsibilities appear (e.g. editor, library, agent integration).