Repository navigation
feat: add sandboxed PC Twin for issue #747 - #940
Merged
AmitoVrito merged 6 commits intoSep 3, 2026
Merged
Conversation
DhruvGarg111
force-pushed
the
feat/issue-747-pc-sandbox-clean
branch
from
August 22, 2026 19:22
f100410 to
16ecdff
Compare
Locks the sandbox's core guarantees against regression, covering the paths that were correct-by-inspection but previously unit-untested: - normalize_relative_path / DiffBundle construction reject ../, absolute, ./, empty, and NUL-byte paths - apply-side _safe_target rejects a symlink-parent escape (a path with no traversal tokens whose parent is a symlink pointing outside the root), and verifies nothing is written outside - DiffBundle rejects duplicate paths and a digest-tampered bundle on read - apply refuses a passing receipt bound to a different diff digest - CallableEvalGate still gates an explicit passed=True behind the score threshold - ComputerUseAgent audit events record text_length only, never the typed text or on-screen contents (no keystroke/secret logging) Co-authored-by: Dhruv Garg <[email protected]>
Co-authored-by: Dhruv Garg <[email protected]>
…dbox-clean # Conflicts: # CHANGELOG.md
Collaborator
|
Merged, thanks Dhruv. Really clean work on this one. The overlay/diff/apply split is solid and the Docker hardening is exactly right. Reviewed the whole thing for sandbox escape and path traversal and it holds up well. Added a few negative tests before merge to lock the security contract (traversal, duplicate paths, digest tamper, symlink escape, and the no-keystroke-logging audit property) so those paths can't regress. Also opened #1016 (bound the exec output cap like we did in #929) and #1017 (signed receipt at apply time) as follow-ups when you get a chance. |
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.
Summary
Validation
tests/sandbox tests/computer_use tests/audit/test_cli.py tests/marketplace/test_bundle.py tests/cli/test_agent_marketplace_cli.py tests/cli/test_agent_cli.py: 76 passed, 1 skippedpython -m ruff check src tests: passedpython -m ruff format --check src tests: passed (979 files already formatted)The replacement branch is based directly on current upstream
mainand contains exactly the three issue #747 commits; unrelated archaeology commits from the earlier branch are excluded.Closes #747