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. Windows enforcement work is tracked in issue #2142 and specified by the Windows sandbox backend RFC (中文).
@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.linux-sandbox.ts builds the bubblewrap mounts, namespace arguments, and network seccomp filter.linux-capability.ts proves bubblewrap and namespace availability before selection is usable.windows-profile.ts compiles managed profiles into canonical ACL, network, and environment policy.windows-sandbox.ts writes one-shot manifests and invokes the packaged AppContainer broker.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.unsupported_platform.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.tspackages/runtime/src/__tests__/linux-sandbox.test.tspackages/runtime/src/__tests__/linux-sandbox-smoke.test.tswindows-profile.test.ts and windows-sandbox.test.tssandbox-export.test.ts and default-sandbox-manager.test.ts