th-4d9ee1: sandbox posture for a personal assistant#241
Merged
Conversation
User-authorized (2026-07-20): Brent explicitly directed this change and its landing after reviewing the tradeoff. The Seatbelt profile confined writes to the workspace, which made Big Smooth ineffective as a personal assistant: it could not edit ~/.zshrc or ~/.config, and burned ~30 turns failing to place a file in ~/.config. A path-based write jail cannot tell a benign config edit from a harmful one -- it only sees paths. So the jail is replaced by permit-by-default plus targeted denies for the guarantees that must hold unconditionally: credential stores, ~/Library/LaunchAgents, and .git/hooks + .git/config. The git denies are path regexes rather than workspace subpaths, so they cover every checkout on the machine. Intent-level judgement moves to the behavioural layers: the engine DenyPolicy circuit-breakers (which no AutoMode can downgrade) and the Narc LLM judge. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ZctFb4oiWoJraHN2db1nX
🦋 Changeset detectedLatest commit: 12e1197 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Problem
The macOS Seatbelt profile confined writes to the workspace. That made Big Smooth ineffective as a personal assistant — it couldn't edit
~/.zshrcor anything under~/.config, and in one session burned ~30 turns failing to place a poster file in~/.config.A path-based write jail can't distinguish "edit my shell rc" from "exfiltrate my SSH key". It only sees paths.
Change
Permit writes by default, and keep kernel denies only for guarantees that must hold unconditionally even against a fully-hijacked shell:
~/.ssh,~/.aws,~/.config/gh,~/.config/gcloud,~/.kube,~/.docker,~/.gnupg,.netrc,~/.smooth/auth,providers.json~/Library/LaunchAgents— a login agent written here would later execute outside the sandbox.git/hooks+.git/config— execution re-entryThe git denies are path regexes, not workspace subpaths. Once writes are permitted broadly, a workspace-scoped deny would leave a hook plantable in every other checkout on the machine. Covered by a regression test that asserts the deny holds in an unrelated repo.
Intent-level judgement moves to the layers that can actually see intent: the engine DenyPolicy circuit-breakers (which no AutoMode can downgrade) and the Narc LLM judge.
Verification
cargo test -p smooai-smooth-tools→ 105 passed, 0 failedcargo fmt --checkclean$HOMEwrite now succeeds, while a write under~/.sshis still kernel-denied (asserted by exit code and by the file's absence)Note
This deliberately widens what the agent may write. It was directed and authorized by the repo owner after reviewing the tradeoff; the security posture shifts from path-jailing to behavioural gating rather than being removed.
Pearl: th-4d9ee1
🤖 Generated with Claude Code