This directory owns platform sandbox selection and command transformation. It translates an active PermissionProfile into an execution request; it does not decide whether an operation is approved and does not execute the request itself.
Code and focused tests are the final authority. Remaining enforcement work is tracked in issue #843, not in this document.
@maka/core owns the platform-neutral permission language:
permission-profile.ts defines managed, disabled, and external profiles; file-system entries; network policy; standard profiles; and pure path matchers.permission-profile-compiler.ts maps the product PermissionMode to an active profile while keeping approval policy separate.@maka/runtime owns platform transformation:
types.ts defines sandbox selection, command, path-context, execution-request, and typed failure contracts.sandbox-manager.ts decides whether a profile requires a sandbox, selects a platform backend, and delegates transformation.macos-seatbelt.ts builds the Seatbelt policy and wraps inner argv with /usr/bin/sandbox-exec.default-sandbox-manager.ts registers the supported default backends.index.ts is the public subpath surface; the runtime package barrel re-exports the supported API.auto preference.require forces platform sandbox selection; forbid selects host execution and is an internal orchestration input, not proof of approval.backend_not_implemented.unsupported_platform when a sandbox is required.PermissionEngine owns allow, prompt, and block decisions. Sandbox selection does not grant approval.SandboxManager transforms commands but does not spawn processes, retry without a sandbox, emit UI, or own telemetry.PermissionProfile.External means file-system isolation is supplied by the environment; Maka does not stack a local platform sandbox in the current implementation.packages/core/src/__tests__/permission-profile*.test.tspackages/runtime/src/__tests__/sandbox-manager.test.tspackages/runtime/src/__tests__/macos-seatbelt.test.tspackages/runtime/src/__tests__/macos-seatbelt-smoke.test.tssandbox-export.test.ts and default-sandbox-manager.test.ts