Skip to content

docs: design Go/bubblewrap execution isolation and access audit - #555

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

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

Conversation

@renaesop

@renaesop renaesop commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Unexpected-access investigations need searchable observations, task/tool provenance
and explicit visibility gaps. Managed tools also need destination limits enforced
at execution time alongside ARTEX's existing target gate and semantic judge.

This design selects an ARTEX-owned Go/bubblewrap Linux backend connected to one
authoritative ARTEX egress gateway. Go invokes a supported external bwrap binary;
ARTEX owns launch policy, task-private transport, lifecycle, resource enforcement
and regression tests. The backend introduces no Node/SRT/Fence dependency and does
not fork bubblewrap or reimplement kernel isolation.

  • Keep metadata audit/search independent of optional sandbox installation and body
    recording. Preserve existing capture/rewrite/archive, target pins, privilege
    dropping, isolation checks, noise governance and budget accounting.
  • Deliver four PRs total, including this existing design PR: usable audit/search,
    authoritative gateway, then the complete opt-in Linux backend. That leaves three
    new implementation PRs. Supervisor, protected transport and resource qualification
    are reviewable commits/checklists inside the backend PR; no partial strict release.
  • Require whole-tree and existing-tunnel cleanup, pre-exec resource enforcement,
    task-wide budgets, truthful URL/coverage reporting and real Linux tests. Preserve
    all five release build targets. Native Windows/macOS backends, new managed guest/
    remote deployments and advanced automated investigation are explicit follow-ups.
    Required testing, packaging, measurements and rollback ship with each feature PR.
  • Explicitly include remote-content prompt-injection defense in the first release:
    trusted source metadata, existing nonce/code-owned boundaries through compaction
    and handoff, independent action authorization and synthetic injection regressions.
    The sandbox limits induced actions; it does not make the model injection-immune.
  • Retain SSRF/RCE second-hop review and deception resilience through containment,
    evidence, budgets and operator review. No automatic honeypot detection, anonymity
    or control over a remote target's network is claimed.

The dependency concern in the earlier review is addressed by the revised direction;
implementation PRs must still prove bwrap packaging, capability/version support,
security-update ownership and rollback. Runtime alternatives and their limitations
remain documented, without treating documentation or successful startup as security
qualification.

Related: #553, #554; follows #421 and #423.

Scope: design/documentation only. No runtime installation, new dependency,
implementation or default changes. This PR does not complete the feature issues
and is ready for review. Implementation PRs will remain Draft after automated verification until the requester completes real-scenario manual testing and explicitly authorizes readiness.

Validation: before submission, run Markdown/link/four-PR consistency and
publication checks plus git diff --check in an isolated Linux checkout, together
with focused existing untrusted-boundary/prompt-tail regression tests. Record the
actual results in the update comment. These existing unit tests do not validate the
planned sandbox or prove model-level injection immunity. Implementation PRs require
functional/isolation tests on the verification host before submission, alongside
the broader supported-platform matrix; CI alone does not replace that gate.

@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: design Go/bubblewrap execution isolation and access audit #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
renaesop marked this pull request as ready for review November 27, 2026 03:03
@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.

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