mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4120] [Other] Configurable permission presets: a workspace-write mode between Manual and Bypass #1803
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1803
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WolleGeee on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4120
Area
[Other]
What do you want to do?
I want an agent to work through a longer task on its own, inside boundaries I
set once, without approving every tool call.
Today the three modes are all-or-nothing:
Mode Sandbox Approval
Manual danger-full-access ask
Plan read-only never
Bypass danger-full-access never
Manual asks often but the sandbox is not restricted. Plan is a real fence but
nothing can change. Bypass has neither. There is no mode that is both
restricted and autonomous.
What I am asking for:
A fourth built-in mode: the workspace-write sandbox with its own approval
policy. The Harness already has this sandbox mode, and its writable roots
are the session workspace plus the temp directories
(dsh-sandbox/src/roots.ts:54), so the fence already exists - it is just not
reachable from the app.
The behaviour we would like, stated as a goal rather than as an
implementation:
operations that need wider permissions may still require approval.
requests for wider permissions are denied.
We have not verified whether the current Strata gate already supports these
combinations without further changes. We are describing the wanted result,
not proposing a particular implementation.
Presets defined in configuration instead of hardcoded. Harness presets are
a host-supplied table of { sandbox, approval } pairs. Strata writes three
rows in apps/host/server/agent/profile.mjs (MODE_PRESETS) and regenerates
the patch on every start. That patch is applied as the last --patch layer,
after the user patch layer at <DSH_HOME>/cordis.patch.yml, so a user patch
cannot add a preset today. A documented config seam would make this
update-proof without editing shipped code.
Later, if it fits: narrow, default-deny automatic approvals - a small
allowlist of verified read-only operations, scoped to directories, valid
for one session, reviewable and revocable. #3975 shows why matching a
command name is not enough to prove a call is read-only.
Later, if it fits: external tools and network access as a separate
permission. MCP calls are not routed through the sandbox fence at all; only
the gate decides on them. A restricted filesystem mode is not a boundary for
calendar, board or web access.
The existing client appears to render permission presets dynamically from the
server-provided catalog (dsh-client-ui-permission-presets reads the composed
catalog, and defaultPreset lives in the "permission" settings namespace). This
may reduce the UI changes required, although additional integration work could
still be necessary.
Tradeoffs: more modes in the menu, and a mode that asks less is a security
decision. Existing modes and defaults stay as they are; the new mode is opt-in.
What do you do today instead?
I switch between Plan and Manual. Plan is good for reading and research: no
prompts, nothing can change. But it refuses MCP tools outright, so the calendar
and board integrations are unusable there.
Everything that writes goes back to Manual, where one task with a few file
edits and shell commands means roughly twenty confirmations. Chained read-only
commands ask as well:
python3 --version; git --versionprompts although eachpart on its own is safe.
Bypass stops the prompts, and I do not want to give the agent unrestricted
access to the whole machine just to avoid them.
Technical context (static analysis of the shipped code, not a security audit):
configured preset table is fixed for the plugin lifetime"; "custom is
derived-only"
Observed behaviour (Strata 0.2.5, macOS 27.0.1, Apple Silicon): Manual prompts
for file writes, MCP calls and chained shell commands; Plan prompts for nothing
and refuses MCP calls; an escalation attempted in Plan was rejected without any
dialog - reported separately.
Related issues: #3975, #3477, #1719. I searched open and closed issues for
permission, approval, sandbox, preset, allowlist and auto-review and found
nothing about configurable presets.
@github-actions[bot] commented on GitHub (Oct 25, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 25, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.