Should permission defaults depend on the selected sandbox provider? #1024
harshlocham
started this conversation in
Ideas
Replies: 1 comment
|
Good catch! I'm not a maintainer but IMHO this should at least be documented more clearly for localProcessSandbox. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
Harness adapters that run coding agents inside a TanStack sandbox intentionally treat the sandbox as the security boundary. For several adapters, that shows up as production defaults that auto-approve agent tool use:
acpCompatible)permissionMode: 'bypassPermissions',permissionsstrategy effectively headlesspackages/ai-acp/src/adapters/compatible.tspermissionMode: 'bypassPermissions'→--permission-modepackages/ai-claude-code/src/adapters/text.tspermissionMode: 'bypassPermissions'packages/ai-grok-build/src/adapters/text.tspermissionMode: 'default'packages/ai-opencode/src/adapters/text.tsFrom tracing the code, these appear to be production defaults rather than test-only behavior.
localProcessSandboxis opt-in (it is not the library default, and the documentation recommends Docker first). Its implementation clearly documents the trust boundary:Interaction between provider and defaults
One common setup for local development is:
If
permissionModeis omitted, the ACP, Claude Code, and Grok Build adapters default tobypassPermissions.This makes sense when the sandbox itself provides isolation, but
localProcessSandboxintentionally runs directly on the host. That made me wonder whether the permission defaults should depend on the selected sandbox provider, or whether the current behavior is an intentional tradeoff for the local development workflow.All reactions