Skip to content

docs: reconcile execution and audit design with upstream Docker backend - #555

Open
renaesop wants to merge 1 commit into
BaaRai:mainfrom
renaesop:codex/managed-scope-audit-design-20261126
Open

renaesop wants to merge 1 commit into
BaaRai:mainfrom
renaesop:codex/managed-scope-audit-design-20261126

Conversation

@renaesop

@renaesop renaesop commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Upstream now defaults to per-task Docker execution and scoped egress. The previous design's proposed Go/bubblewrap backend, opt-in rollout and fixed four-PR order no longer describe the implementation. This revision reconciles the design with main 8f91643b786eadbdd160a6298e13215b8943b9c8 and separates delivered behavior from pending work.

Completion assessment: the execution foundation is implemented with containers; the entire original design is not complete.

  • Merged in main: the authenticated runner, per-task worker/network/proxy, required-mode/no-local-fallback behavior, domain/CIDR final-dial checks, operator-scope protections, container limits and private connection logs. fix(sandbox): remove workers on failed execs and task deletion #764 is now merged and supplies exec/lifecycle/delete cleanup fixes.
  • Implemented in pending feat: add redacted access audit for Docker tasks and URL/time search #596, not merged: capture-independent URL/time search, Docker HTTPS inspection, public-CA-only worker mounts, HTTP/SOCKS task credentials, trusted collection, bounded spools and SQLite import/search. The reviewed head is 203185f6dbb23dadafa8e84e25b196aa2dcbdb93; its branch must be reconciled with newer main before merge.
  • Still incomplete: exact worker/run/action/policy/approval provenance; secondary-destination/artifact indexing and independently corroborated SSRF/RCE investigation; complete cross-executor policy/action/budget contracts; bounded live revocation; strict durable auditing and a qualified platform/capability matrix.

The design now states the actual boundaries: one container/workspace per task, shared by that task's logical workers; separate panel-native HTTP/WebFetch paths; explicit browser/MCP coverage; connection-only visibility in main; and HTTPS compatibility/coverage limitations in #596. Private logs alone do not prove initiating-task identity. Scope allows useful networking, so an allowed HTTP(S)/SOCKS channel can still carry a callback. Containers do not establish prompt-injection immunity or control a remote server's second hop.

Updated all three documents:

  • docs/managed-execution-scope-and-audit.md: source-backed completion matrix, current architecture, pending audit behavior, remaining contracts and revised exit gates.
  • docs/bubblewrap-backend-plan.md: Docker supersedes the old backend prerequisite; retain the historical path for existing links.
  • docs/sandbox-runtime-evaluation.md: retain the earlier vendor comparison as explicitly dated research, not current runtime recommendations or a requirement to replace Docker.

The old implementation requirements remain acceptance criteria where unmet; they are not marked complete to preserve a PR count. The design itself is ready for review. #596 remains Draft for its outstanding investigation workflow. Related: #553, #554.

Scope: documentation only. No runtime, dependency, migration, default or deployment changes. This branch is a single documentation commit on the current main baseline.

Validation before submission:

  • Local and isolated cc01 Linux checkout: all 3 documents passed code-fence, whitespace, status/default consistency and 38 local link/anchor checks; final document SHA-256 hashes matched. Seven pinned GitHub source references were verified against fetched Git objects. git diff --check and the staged equivalent passed.
  • cc01 focused existing regressions: 44 tests passed, no failures or skips, using go test -race -count=1 -json ./agent ./sandbox -run 'Test(UntrustedBoundary|PromptSeedsDoNotCarryInjectionBlock|InjectionTail|PlannerRoundInputEndsWithGoalAnchor|Exec|EnsureTask|Delete|Kill|EgressPolicy|Validate|Filter|DockerBackend|Demux)' -timeout 180s with TMPDIR=/tmp, GOMAXPROCS=2 and ambient proxy variables removed.
  • These checks validate the documentation revision and selected existing boundaries. They are not new real-Docker, all-platform, model-immunity or remote-second-hop qualification. The prior feat: add redacted access audit for Docker tasks and URL/time search #596 Docker results are explicitly attributed to that branch/host in the document.

@5P34R

5P34R commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Review notes

Design-only, with no runtime change and nothing concerning. Links point to this repo and to anthropics/sandbox-runtime pinned to a commit. The main decision for maintainers is the proposed future dependency on a Node-based "research preview" sandbox runtime, which belongs in the follow-up PRs.

@BaaRai

BaaRai commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Thanks @renaesop. Still a draft, so not merged. Mark it ready when you want it in.

@renaesop renaesop changed the title docs: propose managed execution scope and access audit docs: design Go/bubblewrap execution isolation and access audit Nov 27, 2026
@renaesop

Copy link
Copy Markdown
Contributor Author

Updated the design, PR description and both tracking issues to select an
ARTEX-owned Go/bubblewrap Linux backend.

@5P34R Thanks for separating design acceptance from dependency acceptance. The
Linux plan now adds no Node/SRT/Fence dependency: it invokes supported upstream
bwrap and keeps ARTEX's gateway as the only policy/audit authority. ARTEX explicitly
owns the launch profile, private bridge, complete process/connection cleanup,
resource enforcement, supported Linux matrix and security-update tests. The follow-up
PRs still need packaging/provenance, real capability tests and maintenance ownership.

The plan now has ten focused PRs, with the former runtime change split into offline
isolation, gateway transport and resource/platform qualification. Search can proceed
independently with existing managed producers. The update also incorporates the
worker/control-plane boundary, deception-resilience limits and evidence/budget
workflow, remote SSRF/RCE review, and separate native Windows/macOS qualification.
No strict profile may silently fall back to host execution.

@BaaRai This remains a Draft design PR; the update installs or enables no runtime
and makes no claim that the planned implementation has passed isolation acceptance.
The Linux direction is selected, while version/platform qualification and code
reviews belong to the subsequent PRs.

@renaesop

Copy link
Copy Markdown
Contributor Author

Simplified the first release to four PRs total, including this existing design
PR
. Only three new implementation PRs follow:

  1. Existing docs: reconcile execution and audit design with upstream Docker backend #555: design, contracts and first-release boundaries.
  2. Usable access audit: existing producers, trusted provenance, URL/time search API
    and minimal inert evidence UI.
  3. Authoritative gateway and action authorization: scope, network budgets, existing
    judge/approval integration and remote-content prompt-injection boundaries.
  4. Complete opt-in Go/bwrap Linux backend: process/filesystem isolation, private
    transport, resource limits, cleanup, packaging and actual platform acceptance.

The earlier ten-item plan is superseded. Backend substeps become reviewable commits
and checklists within PR 4, with no partial strict release. Tests, deployment and
rollback accompany the feature they validate. Native Windows/macOS backends, new
managed guest/remote deployments and advanced automated investigation are explicit
follow-ups; all five existing controller build targets remain preserved.

Remote-content prompt-injection defense is explicitly included now: preserve and
verify existing code-owned prompt tails and nonce-framed tool output, carry source
provenance through summaries/handoffs/memory, and independently authorize resulting
actions. Web/header, tool/MCP-output and inert-file fixtures cover forged roles/
approvals and induced secret/callback requests. The sandbox limits effects even if
model defenses fail; no model-level injection immunity is claimed.

Pre-submission validation ran in an isolated Linux checkout: document/link/four-PR
consistency and publication checks, git diff --cached --check, and focused existing
agent/intercept regressions for untrusted framing, prompt overrides, goal anchors,
review input and deny/approval precedence. These are existing unit regressions,
not acceptance of the proposed new sandbox. Future implementation submissions also
require functional/isolation testing on the verification host before commit/push,
alongside the broader supported-platform matrix.

This remains a Draft documentation PR. No runtime behavior or production deployment
was changed by this revision.

@renaesop

Copy link
Copy Markdown
Contributor Author

The requester has now authorized this documentation PR to be ready for review; it is no longer Draft. This supersedes the Draft-status notes in the earlier comments.

The first implementation is #596, covering access audit and search, and it deliberately remains Draft after passing verification on the requested Linux host. Implementation PRs must not be marked ready until the requester performs real-scenario manual testing and explicitly approves that transition.

The four-PR plan is unchanged: this design, audit/search, authoritative gateway/action authorization (including the existing untrusted-content boundaries), then the complete opt-in Go/bubblewrap Linux backend. This readiness change is only for the documentation; no merge or production rollout was performed.

@BaaRai BaaRai left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The design is detailed, but it is not current behavior: the shipped sandbox is the Docker worker plus the per-task egress proxy, and the bubblewrap backend is not implemented. The file calls itself "selected implementation direction", which reads as a maintainer decision.

Please either mark it explicitly as a proposal for #554, not current behavior, and drop "selected", or move the design to #554. As written, 1,051 lines under docs/ will be read as the supported architecture.

@renaesop
renaesop force-pushed the codex/managed-scope-audit-design-20261126 branch from bd3547a to f222d92 Compare December 2, 2026 00:33
@renaesop renaesop changed the title docs: design Go/bubblewrap execution isolation and access audit docs: reconcile execution and audit design with upstream Docker backend Dec 2, 2026
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.

3 participants