This directory owns platform sandbox selection and command transformation. It translates the profile in an active session ExecutionBoundary into an execution request; it does not decide whether a requested boundary expansion 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 boundary language:
execution-boundary.ts defines the session boundary, its revision, and monotonic expansion.permission-profile.ts defines managed, disabled, and external profiles; file-system entries; network policy; standard profiles; and pure path matchers.permission-profile-compiler.ts preserves compatibility when a legacy product mode must be mapped to a profile.@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.ExecutionBoundary is the authority for whether an operation is currently inside the sandbox boundary. Sandbox selection does not expand that boundary.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