Repository Public License
1# ADR 0006 — App Sandbox for PRISM itself23**Status:** accepted (2026-11-22)45## Context6PRISM 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.78## Decision9PRISM 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.1011Controls used instead of the sandbox:12- No shell: processes are started with absolute paths and argument arrays; only `/usr/bin/codesign`, `/usr/bin/iconutil` and `/usr/bin/security find-identity` are ever run (`scripts/lint.sh` checks for shell use).13- No listening sockets (ADR 0007); the only outbound connection is HTTPS to the configured Anthropic API host.14- Generated apps cannot execute code (ADR 0003); permissions are default-deny and checked both at validation and at run time.15- File access by apps goes through Open/Save panels only.16- The publisher refuses to delete or overwrite a bundle it did not publish.1718## Consequences19A 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.20