Repository navigation
Feat/runtime permission profile sandbox - #880
Closed
YayoiNanoka wants to merge 47 commits into
Closed
YayoiNanoka wants to merge 47 commits into
YayoiNanoka wants to merge 47 commits into
Conversation
Contributor
Author
|
麻了,明天再解冲突吧 |
…sion-profile-sandbox
YayoiNanoka
marked this pull request as draft
July 14, 2026 03:30
This was referenced Jul 14, 2026
Contributor
Author
|
This draft PR has been superseded by a series of smaller, reviewable slices. The sandbox implementation was split into focused PRs and merged incrementally. The remaining work is tracked by #1016. Once #1016 is merged, this draft will no longer contain any uniquely required changes, so I’m closing it in favor of the sliced implementation. Related to #509. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue
Related to #509.
Summary
This PR introduces the Codex-style permission management and sandbox enforcement architecture for Maka's local macOS runtime.
It replaces the previous worktree/write-back direction with:
PermissionProfileWorkspace writes are applied directly to the real workspace. This PR does not introduce worktrees, diff/write-back, or an apply-patch UI.
What changed
Permission model
explore-> read-onlyask/execute-> workspace-writebypass-> danger-full-access.git,.agents, and.codexmetadata by default.macOS sandbox enforcement
SandboxManagerand the macOS Seatbelt backend.Filesystem tools
/tmpand/private/tmpaliases consistently.Additional permissions
askrequests to the user andexecuterequests to a no-tools AutoReviewer.Explicit unsandboxed execution
require_escalatedrequests.Runtime integration and diagnostics
PermissionProfile.External.Security properties
Out of scope
Verification
Completed locally on macOS:
npm testnpm run typechecknpm run build/tmpwritesOne existing headless test was conditionally skipped locally because the development checkout was dirty.