Skip to content

Sandbox and approval hardening - #1197

Merged
lydakis merged 10 commits into
mainfrom
claude/project-thread-2tyg30
Nov 19, 2026
Merged

lydakis merged 10 commits into
mainfrom
claude/project-thread-2tyg30

Conversation

@lydakis

@lydakis lydakis commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Hardening of the sandbox, approvals and Sonny's agent handling for 0.10.2. Details will follow in an advisory after the release, per SECURITY.md.

What changes, in short:

  • Daemon: a new bot's folders are kept as they were checked when the request was read. A made bot takes its creator's outputs and at most its creator's tools. A patch's removals and modes run inside the sandbox's helper, one helper per patch. Rate-limit headers out of range are refused or clamped. AGENTS.md composition reads nothing in the folders kept unreadable.
  • Linux sandbox: a git folder's worktrees is read-only, and a checkout writes only its own entry there.
  • Sonny: a lead is a bot no agent made, whatever its name. Repositories are taken only as git makes them. Commit triggers run confined. Browser saves for confined agents are staged and written through no link. Lookout lines can't pass for a header. Render folders are private. The listings and approval cards escape control characters.
  • SECURITY.md says what each rule is, along with the known limits.

Regression tests come with each change.

Measurements

On Linux, a sandboxed command's start with 15 worktrees takes 4.5 ms, down from 6.2 ms today (bwrap's base is about 4.2 ms). With a single worktree it is about 0.3 ms slower. Patches spawn one helper whatever the number of files.

Requested by George


Generated by Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T01:36:59.280834Z b27c609 New commits
🔒 Security Review ✅ Completed 2026-11-19T01:12:56.105647Z 21d966e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 21d966ea05

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/reviewer.rs Resolved
Comment thread src/sandbox.rs Resolved
Comment thread sonny/src/browser.rs Resolved
Comment thread src/tools/files.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c3d690f67

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/browser.rs Resolved
@lydakis
lydakis merged commit f06b14a into main Nov 19, 2026
7 checks passed
@lydakis
lydakis deleted the claude/project-thread-2tyg30 branch November 19, 2026 03:40
lydakis added a commit that referenced this pull request Dec 1, 2026
Over a link, the agent's machine checked where a saved file goes, then
made its folders and opened it following every link but one in the
file's own place. A folder on the way swapped for a link after the check
led the write anywhere the person may write.

Now it writes as a confined agent's saves here already are (#1197):
each folder below the agent's opened, or made, following no link, and
the file opened in it following none. One shared writer serves both.
An agent that runs unconfined writes anywhere, as before.


Claude-Session: https://claude.ai/code/session_013jkdGHWYTLgA8idNmFy5qp

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants