Skip to content

Do the OpenShell parts the specs reuse exist as assumed?

Answered 2026-10-05: yes, with conditions. Decided 2026-10-06: 1 changed, built-in profiles checked in parts with GraphQL rules widened, 2A, the risk check in Go, and 3A, approvals bound by the boundary. The decision and its reasons are in the I35I35 (closed): X24-openshell-artifacts: OpenShell artifactsX24-openshell-artifacts (added to S11-verification-and-spikes in #14) comments that start Decision (2026-10-06): and Decision (2026-10-06, addendum):. Source: I35I35 (closed): X24-openshell-artifacts: OpenShell artifactsX24-openshell-artifacts (added to S11-verification-and-spikes in #14), X24-openshell-artifactsX24-openshell-artifacts: OpenShell artifactsDo the OpenShell parts that S07-egress-gateway, S09-policy-credentials-audit and S10-tech-stack build on exist in the assumed form, under a permissive license, at a version that can be pinned: the networkpolicies sche…. Changes S04-architectureS04-architecture: ArchitectureName the processes, the boundaries between them, and which requirement each boundary serves., S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., S08-workspace-and-gitS08-workspace-and-git: Workspace and Git Round TripHow code gets into the guest and how the agent's work gets back out, without sharing the host filesystem., S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded., S10-tech-stackS10-tech-stack: Technology ChoicesFix languages, libraries, packaging, and repository layout, with the reason for each choice. and S13-guest-confinementS13-guest-confinement: Guest ConfinementControls inside the guest that narrow what a project user's processes can do, and tell the host which program opened each connection..

host: trustedpolicy.yamlOpenShell keys+ wraithbox keyswb-hostd1. parse, refuse unknown keys2. write copy: version +network_policies onlyrisk check (decision 2)openshell-prover 0.1.2external program,checksum-pinnedthe file as is: “unknown field ‘wraithbox‘“wb-proxyddependency gate as aGo method, no gRPC hop

Figure 1. Where Wraith Box uses OpenShell’s parts. The user’s policy file holds OpenShell rules and Wraith Box’s own keys. Given as is, the prover refuses it (red path). So wb-hostd writes a copy with only the OpenShell keys and checks that against the boundary. The risk check for approval requests is decision 2. wb-proxyd uses the middleware interface generated from OpenShell’s proto as plain Go code (S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded., S07-egress-gatewayS07-egress-gateway: Egress GatewayThe only path from a guest to any network: a userspace network stack (wb-netd) and a policy-enforcing proxy (wb-proxyd) on the host., X24-openshell-artifactsX24-openshell-artifacts: OpenShell artifactsDo the OpenShell parts that S07-egress-gateway, S09-policy-credentials-audit and S10-tech-stack build on exist in the assumed form, under a permissive license, at a version that can be pinned: the networkpolicies sche…).

Decision 1: which rules go to the prover at wb trust

Section titled “Decision 1: which rules go to the prover at wb trust”

The prover answers unsupported for rules it can’t model: GraphQL, WebSocket, and hosts in audit mode. The built-in git hosting profile has GraphQL rules, so if the whole merged policy goes to the prover, wb trust refuses each project that has a remote on a git host. Until the decision, the spec did that, which is safe but leaves trusted repositories unusable for those projects.

Before option A is relied on, two conditions hold:

Send the prover the global, project and trusted repository rules, without the built-in profiles. Built-in profiles ship with Wraith Box and get their own tests. A repository rule the prover can’t model still refuses.

B. Send everything, refuse “unsupported”

Section titled “B. Send everything, refuse “unsupported””

What the spec says until you decide.

C. Widen the rules the prover can’t model

Section titled “C. Widen the rules the prover can’t model”

Before the check, replace each GraphQL or WebSocket rule in the candidate with a wider REST rule (for example POST /graphql). A wider candidate inside the boundary means the real one is inside too.

Decision 2: where the approval risk check comes from

Section titled “Decision 2: where the approval risk check comes from”

S09-policy-credentials-auditS09-policy-credentials-audit: Policy, Credentials, Certificates and AuditWhere policy comes from, how secrets are held, how TLS inspection is trusted, and what is recorded. said approval requests go through “the prover’s proposal risk check”. That check exists, but only as a Rust library that OpenShell’s gateway calls. The part that keeps only new findings is in the gateway too, and the prover’s README says the library isn’t a stable SDK. It also has none of the extra checks X22-no-guest-credentialsX22-no-guest-credentials: Clients without guest credentialsWhich common clients (Homebrew against ghcr.io, git, gh, npm, pip, uv, SwiftPM, Go, cargo, Claude Code) break when wb-proxyd removes every guest-supplied Authorization header and cookie on inspected hosts? adds.

Follow OpenShell’s four categories and names, add Wraith Box’s own checks, and test against OpenShell’s cases.

Section titled “B. A Rust helper that links OpenShell’s library”

A small program built from OpenShell’s crate, shipped next to the prover.

C. Wait for OpenShell to add it to the prover binary

Section titled “C. Wait for OpenShell to add it to the prover binary”

Ask upstream for a risk command and use it when it ships.

Decision 3: are approvals bound by the boundary?

Section titled “Decision 3: are approvals bound by the boundary?”

The boundary limits what a trusted repository adds. The spec didn’t check approvals against it, so a request the guest triggers and the user accepts could add a rule an organization’s boundary forbids. An approved rule has a fixed form (one exact host, rest, enforce, read-only access), which the prover models. A rule that only allows can be checked alone. If it’s inside the boundary, adding it keeps a policy that is inside the boundary inside it. That check doesn’t depend on decision 1. It does rely on the project’s policy being inside the boundary already, and policy the user writes globally or per project is only boundary-checked at wb trust. For a project with no trusted repository it is never checked. So the choice is either to bind approvals and check the user’s own policy too, or to say the boundary binds only repository configuration. Until the decision, the spec applied option A, and the maintainer chose it.

A. Yes, refuse a request outside the boundary

Section titled “A. Yes, refuse a request outside the boundary”

The prover checks the proposed rule alone. A rule outside the boundary isn’t shown as a request, and the refusal is logged as a Device Config State Change (5019) event. The user’s global and project policy is checked against the boundary too, also for a project with no trusted repository. As recommended, that check left out the built-in profiles. Under decision 1 as decided, it sends the built-in parts that are on, with their GraphQL rules widened.

B. No, the boundary binds only repository configuration

Section titled “B. No, the boundary binds only repository configuration”

Approvals, and the user’s own global and project policy, stay the user’s call, whatever the boundary says.

Requirement1A. No built-ins1B. Everything1C. Widen
SEC09-host-policySEC09-host-policy: Policy is held on the hostThe guest cannot read or change policy. repository config can’t widen past the boundarycheckedchecked, all rulesif rewrite is sound
Trusted repositories usable with a git host remoteyesnoyes, widened
Organization boundary limits built-in profilesnoyes, by refusingnot GraphQL
Requirement2A. Go2B. Rust helper2C. Wait
SEC14-no-fake-approvalsSEC14-no-fake-approvals: Approvals cannot be spoofed by the guestApproval prompts are never rendered in the agent's terminal stream. only the user approves, with the findings shownyesholdsnothing to approve
FR09-approve-unknownFR09-approve-unknown: Approve unknown destinationsA request to an unknown destination is blocked and offered to the user for approval out-of-band (allow once, allow for project, deny). approve an unknown destinationyesworksno, until upstream ships
NFR07-maintainabilityNFR07-maintainability: MaintainabilityMost code is cross-platform Go. languages and dependenciesGo onlyadds Rust and Z3none
Requirement3A. Bound3B. Not bound
SEC09-host-policySEC09-host-policy: Policy is held on the hostThe guest cannot read or change policy. an organization’s boundary limits the projectapprovals toorepository config only
FR09-approve-unknownFR09-approve-unknown: Approve unknown destinationsA request to an unknown destination is blocked and offered to the user for approval out-of-band (allow once, allow for project, deny). approve an unknown destinationinside the boundaryany host
T04-bad-approvalsT04-bad-approvals: Bad approvalsA user approving a malicious request or merging a malicious change despite the flags. a user approves a malicious requestcapped by the boundaryupdate needed
  • verified OpenShell refuses unknown keys at every level of a policy (crates/openshell-policy-schema/src/lib.rs at v0.1.2). The prover refused the sample file with unknown field 'wraithbox', exit 2, and accepted it without that key.
  • verified The prover 0.1.2 macOS archive matches its published SHA-256, and gh attestation verify passes. The release has no Windows build.
  • verified The prover reads /** as every program: against a boundary that allows only /usr/bin/curl, a /** rule exceeds with binary=/a.
  • verified GraphQL rules and audit mode give unsupported, exit 3. A host the boundary lacks and a DELETE it lacks give exceeds_boundary with a counterexample.
  • verified The risk check is openshell_prover::queries, and the new-findings step is in openshell-server. The standalone binary has only check.
  • inferred For one proposed POST rule on a host already reached with a credential, OpenShell’s check would report one capability_expansion. Traced through the source, not run.
  • verified Go code generated from supervisor_middleware.proto with buf works called as a method and over gRPC (spike output).
  • verified OCSF 1.8.0 defines classes 4001, 4002, 5019 and 2004, which OpenShell emits.
  • verified agent-safehouse v0.12.0 is Apache-2.0, with (deny default) profiles applied by sandbox-exec.
  • verified OpenShell’s read-only access preset expands to GET, HEAD and OPTIONS for rest (expand_access_preset), the methods an approval grants.
  • verified On Windows, OpenShell’s host proxy matches every connection against one static agent identity, because MXC doesn’t expose socket owners (RFC 0013).
  • inferred A rule that only allows, checked alone inside the boundary, keeps a policy inside the boundary when added. This follows from containment and wasn’t run.
  • assumed That OpenShell keeps the prover’s JSON result and the v1 middleware package compatible within a minor release (RFC 0014, in review). Not run: the risk check, HttpResponsePreReturn, the prover on deny_rules and on a wildcard host against an exact one, and the safehouse profiles in a guest.
Details and glossary

The copy is a new document. Wraith Box writes it from the rules it parsed. The prover then checks the rules Wraith Box enforces, and nothing it didn’t parse.

“Unsupported” refuses. The prover only proves what it models. A GraphQL rule it ignores could allow a mutation the boundary forbids. Treating “can’t tell” as “no” keeps the check from passing a policy it never checked.

OpenShell’s risk check misses some programs. Its list of known programs has nine entries. Any other path, /** included, counts as an unknown program that speaks HTTP. The check then never flags a program like ssh reaching a host where a credential applies.

Glossary

  • OpenShell: NVIDIA’s sandbox for AI agents. Wraith Box reuses its policy language and some of its tools.
  • Prover: a program that checks a policy against a boundary policy with a solver (Z3), and gives an example when the policy allows more.
  • Boundary policy: the most a project may ever be allowed.
  • Counterexample: one request the policy allows and the boundary doesn’t.
  • Risk check: a check of one proposed rule that lists what it adds, such as a new method on a host with a credential.
  • Middleware API: OpenShell’s interface for code that checks requests after policy and before credentials. The dependency gate uses it.
  • OCSF: an open format for security events that log tools read.
  • Seatbelt: macOS’s kernel sandbox, configured with profiles.