ADR 0006 — App Sandbox for PRISM itself
Status: accepted (2026-11-22)
Context
PRISM writes .app bundles to a folder the user chooses, runs codesign and iconutil, and launches the result. The App Sandbox forbids spawning those tools on arbitrary bundles and makes writing signed bundles outside the container impractical.
Decision
PRISM is not sandboxed. It is distributed outside the Mac App Store, signed with a Developer ID, with the hardened runtime and no entitlements, and notarized.
Controls used instead of the sandbox:
- No shell: processes are started with absolute paths and argument arrays; only
/usr/bin/codesign,/usr/bin/iconutiland/usr/bin/security find-identityare ever run (scripts/lint.shchecks for shell use). - No listening sockets (ADR 0007); the only outbound connection is HTTPS to the configured Anthropic API host.
- Generated apps cannot execute code (ADR 0003); permissions are default-deny and checked both at validation and at run time.
- File access by apps goes through Open/Save panels only.
- The publisher refuses to delete or overwrite a bundle it did not publish.
Consequences
A bug in PRISM has the user's full file access. This is disclosed in docs/KNOWN_LIMITATIONS.md. A sandboxed host for satellites is a post-V1 item.