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..
The picture
Section titled “The picture”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:
- Merge rules, now in 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.. Network rules merge as a union keyed by source and rule name. A user or repository rule with a built-in rule’s name is a load error, built-in denies apply whatever the source, and user or repository policy can’t change a built-in host’s kind, mode or rules. Without these, a repository rule named like a built-in could replace it and drop its denies, and leaving built-ins out of the check would hide that.
- Prover cases to test. The spike didn’t run the prover on
deny_ruleson both sides, or on a wildcard host against an exact one. Both appear in real policies and must be tested before the check is trusted on them.
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.
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.
Impact
Section titled “Impact”| Requirement | 1A. No built-ins | 1B. Everything | 1C. 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 boundary | checked | checked, all rules | if rewrite is sound |
| Trusted repositories usable with a git host remote | yes | no | yes, widened |
| Organization boundary limits built-in profiles | no | yes, by refusing | not GraphQL |
| Requirement | 2A. Go | 2B. Rust helper | 2C. 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 shown | yes | holds | nothing 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 destination | yes | works | no, until upstream ships |
| NFR07-maintainabilityNFR07-maintainability: MaintainabilityMost code is cross-platform Go. languages and dependencies | Go only | adds Rust and Z3 | none |
| Requirement | 3A. Bound | 3B. 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 project | approvals too | repository 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 destination | inside the boundary | any 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 request | capped by the boundary | update needed |
Evidence
Section titled “Evidence”- verified OpenShell refuses unknown keys at every level of a policy (
crates/openshell-policy-schema/src/lib.rsat v0.1.2). The prover refused the sample file withunknown 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 verifypasses. 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 withbinary=/a. - verified GraphQL rules and
auditmode giveunsupported, exit 3. A host the boundary lacks and aDELETEit lacks giveexceeds_boundarywith a counterexample. - verified The risk check is
openshell_prover::queries, and the new-findings step is inopenshell-server. The standalone binary has onlycheck. - inferred For one proposed
POSTrule on a host already reached with a credential, OpenShell’s check would report onecapability_expansion. Traced through the source, not run. - verified Go code generated from
supervisor_middleware.protowithbufworks 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 bysandbox-exec. - verified OpenShell’s
read-onlyaccess preset expands to GET, HEAD and OPTIONS forrest(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
v1middleware package compatible within a minor release (RFC 0014, in review). Not run: the risk check,HttpResponsePreReturn, the prover ondeny_rulesand on a wildcard host against an exact one, and the safehouse profiles in a guest.
What this unblocks
Section titled “What this unblocks”- The policy parser and the boundary check in
wb-hostd, to the 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. rules. - The dependency gate’s interface in
wb-proxyd(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.). - The approval risk check, now that decisions 2 and 3 are made.
- The boundary check for trusted repositories and the built-in profile parts, now that decision 1 is made, once its two conditions hold.
- Part of the exit criterion of V1-M1-spikes-closedV1-M1-spikes-closed: Spikes answered and spec gaps closedX01-model-credential to X09-keychain-unsigned and X17-image-build to X28-git-alloc-limit written up in docs/spikes/, the spec issues of the first implementation plan decided, and specs updated..
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.