Skip to content

core/protocol: add structured macOS additional permissions and merge them into sandbox execution#13499

Merged
celia-oai merged 5 commits intomainfrom
dev/cc/merge-sandbox-3
Mar 6, 2026
Merged

core/protocol: add structured macOS additional permissions and merge them into sandbox execution#13499
celia-oai merged 5 commits intomainfrom
dev/cc/merge-sandbox-3

Conversation

@celia-oai
Copy link
Copy Markdown
Collaborator

@celia-oai celia-oai commented Mar 4, 2026

Summary

  • Introduce strongly-typed macOS additional permissions across protocol/core/app-server boundaries.
  • Merge additional permissions into effective sandbox execution, including macOS seatbelt profile extensions.
  • Expand docs, schema/tool definitions, UI rendering, and tests for network, file_system, and macos additional permissions.
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch 3 times, most recently from 47f5b05 to b09d16f Compare March 4, 2026 21:46
@celia-oai celia-oai changed the base branch from main to dev/cc/merge-sandbox-2 March 4, 2026 21:47
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch 3 times, most recently from 4767637 to ccec75e Compare March 4, 2026 23:08
@celia-oai celia-oai changed the title draft Mar 4, 2026
@celia-oai celia-oai marked this pull request as ready for review March 4, 2026 23:10
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch from ccec75e to a3a21c0 Compare March 4, 2026 23:23
Copy link
Copy Markdown
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall aligned with this direction! Left some comments on code structure

policy.clone()
};
#[cfg(not(target_os = "macos"))]
let macos_seatbelt_profile_extensions = None;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely out of scope of this PR, but it feels like a really leaky abstraction to have to use target_os macros everywhere we declare this variable, particularly when it's part of the effective_sandbox_permissions constructor. I wonder if we could make this easier to work with somehow, e.g. passing around the outer struct more consistently

@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-2 branch 3 times, most recently from 66f9918 to 9911c6a Compare March 5, 2026 19:28
Base automatically changed from dev/cc/merge-sandbox-2 to main March 5, 2026 20:05
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch from a3a21c0 to 906f7bd Compare March 5, 2026 20:08
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch 6 times, most recently from 766c1d3 to c166206 Compare March 5, 2026 22:15
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch from c166206 to c9db22c Compare March 5, 2026 22:33
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch from 741e0e7 to fc9ee3a Compare March 5, 2026 22:53
@celia-oai celia-oai changed the title feat: support network and macOS additional permissions for sandboxed commands Mar 5, 2026
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch from 0e5617a to 655aa8b Compare March 5, 2026 23:36
@celia-oai celia-oai force-pushed the dev/cc/merge-sandbox-3 branch from 655aa8b to 9b9ca98 Compare March 5, 2026 23:45
@celia-oai celia-oai merged commit aaefee0 into main Mar 6, 2026
50 of 53 checks passed
@celia-oai celia-oai deleted the dev/cc/merge-sandbox-3 branch March 6, 2026 00:21
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants