Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
7ac73a8
Merge pull request #340 from NVIDIA-AI-Blueprints/release/2.2
AjayThorve Jul 15, 2026
56d3659
Merge pull request #342 from NVIDIA-AI-Blueprints/release/2.2
AjayThorve Jul 15, 2026
6a3752b
Merge pull request #343 from NVIDIA-AI-Blueprints/release/2.2
AjayThorve Jul 15, 2026
de6ba0a
Merge pull request #344 from NVIDIA-AI-Blueprints/release/2.2
AjayThorve Jul 15, 2026
6115e4b
feat: add nimble_web_search data source (#261) (#346)
AjayThorve Jul 15, 2026
415dddd
Merge pull request #349 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 15, 2026
505342f
Merge pull request #350 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 15, 2026
b72b08a
Merge pull request #351 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 15, 2026
1027b0b
Merge pull request #352 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 15, 2026
658fb0a
Merge pull request #354 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 15, 2026
073ddf0
Merge pull request #355 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 15, 2026
d336279
Merge pull request #362 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 17, 2026
7eda0d7
Merge pull request #364 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 17, 2026
8176911
Merge pull request #365 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 17, 2026
135f048
Merge pull request #366 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 17, 2026
769dfd7
Merge pull request #368 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 17, 2026
cac7c82
Merge pull request #369 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 17, 2026
babbcd9
Merge pull request #370 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 17, 2026
4227c6d
Merge pull request #376 from NVIDIA-AI-Blueprints/release/2.2
GPUtester Jul 21, 2026
0a90441
fix(openshell): upgrade certified stack to 0.0.88
KyleZheng1284 Jul 21, 2026
a2efaaa
Merge branch 'develop' into codex/upgrade-openshell-0.0.88
KyleZheng1284 Jul 21, 2026
745ed55
Merge branch 'release/2.2' into codex/upgrade-openshell-0.0.88
KyleZheng1284 Jul 22, 2026
7fa5da3
fix(openshell): preserve workspace semantics
KyleZheng1284 Jul 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configs/config_openshell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ functions:
_type: deep_research_sandbox
provider: openshell
openshell_image: ${AIQ_OPENSHELL_IMAGE:-aiq-openshell-demo:latest}
workspace: ${AIQ_OPENSHELL_WORKSPACE:-default}
policy: ${AIQ_OPENSHELL_POLICY_FILE:-configs/openshell/generated/aiq-openshell-policy.yaml}
workdir: /sandbox
# The OpenShell policy is authoritative. This declaration is an upper bound:
Expand Down
8 changes: 4 additions & 4 deletions configs/openshell/aiq-research-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ version: 1

filesystem_policy:
include_workdir: true
# Declare the proxy baseline up front so OpenShell does not create an enriched
# revision whose content/hash differs from the policy AI-Q submitted.
read_only:
- /usr
- /lib
Expand All @@ -20,10 +22,8 @@ filesystem_policy:
- /tmp
- /dev/null

# Fail closed when the host cannot enforce Landlock filesystem confinement. Local demo
# environments that intentionally accept weaker isolation must generate a separate policy
# with `scripts/openshell/setup_openshell.sh --landlock-compatibility best_effort` and configure
# `require_hard_landlock: false` explicitly.
# hard_requirement is the production default: a missing Landlock LSM fails closed. Set
# best_effort only for an explicit local demo that accepts loss of filesystem confinement.
landlock:
compatibility: hard_requirement

Expand Down
3 changes: 2 additions & 1 deletion docs/source/architecture/agents/sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Deep research can optionally run DeepAgents `execute` calls through a sandbox pr
(Modal, OpenShell, or any registered provider). Modal and OpenShell create a fresh physical
sandbox per job. OpenShell binds the configured policy at creation and attests the authoritative
effective policy source, content, hash, and active revision before exposing the execution backend.
On the supported OpenShell `0.0.80` stack, current, active, revision, and effective-config versions
OpenShell lifecycle calls are explicitly scoped to the configured workspace (default: `default`).
On the supported OpenShell `0.0.88` stack, current, active, revision, and effective-config versions
must all be positive and agree with the exact submitted policy/hash; missing capabilities or any
version disagreement fails closed.

Expand Down
53 changes: 33 additions & 20 deletions docs/source/deployment/openshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,25 @@ Until that release exists, `pip check` reports the adapter's declared
DeepAgents-range conflict; this PR must not describe that metadata state as
clean even though the tested adapter surface works with AI-Q's locked runtime.

AI-Q currently requires and defaults to OpenShell `0.0.80`. It is the first
released version that acknowledges the initial sandbox-scoped policy revision as
`LOADED` after successful policy-engine construction and exposes immutable
request-level labels/selectors through the Python SDK. Earlier releases can leave
the revision `PENDING` with `current_policy_version=0` or omit ownership labels,
so they fail AI-Q's strict readiness checks.
AI-Q currently requires and defaults to OpenShell `0.0.88`. It retains the
policy-revision and request-label capabilities AI-Q requires, adds explicit
workspace scoping to the SDK, and assigns file-compatible Landlock rights to
non-directory paths. That path handling allows the shipped `/dev/urandom` and
`/dev/null` rules to work on Linux while Landlock remains a
`hard_requirement`; earlier releases can reject those rules during sandbox
startup.

Landlock mode never downgrades automatically. Linux production acceptance uses
`hard_requirement`, so a gateway or host that cannot enforce the required
filesystem policy fails sandbox readiness or creation closed, before research
commands can run. `best_effort` is intended primarily for local macOS/Docker
Desktop functional demos, where Landlock is unavailable: it requires an
explicit AI-Q opt-in, permits the demo to run without the production
filesystem-confinement guarantee, and cannot be reported as Linux production
acceptance.

The certified release is necessary but not sufficient: runtime security decisions
remain capability-based. On the supported `0.0.80` stack, the current, active,
remain capability-based. On the supported `0.0.88` stack, the current, active,
revision, and effective-config versions must all be positive and agree. Any
missing capability or version/content/hash/source mismatch fails closed.

Expand Down Expand Up @@ -177,6 +187,7 @@ The gateway launcher, AI-Q runtime, and live suite use these non-secret settings
|---|---|---|
| `AIQ_OPENSHELL_LIVE_TESTS` | unset | Must equal `1` to enable live tests |
| `AIQ_OPENSHELL_GATEWAY_NAME` | active gateway | Registered gateway name |
| `AIQ_OPENSHELL_WORKSPACE` | `default` | Optional non-default workspace override for sandbox lifecycle operations |
| `AIQ_OPENSHELL_POLICY_FILE` | `configs/openshell/generated/aiq-openshell-policy.yaml` | Policy submitted and attested |
| `AIQ_OPENSHELL_IMAGE` | `aiq-openshell-demo:latest` | Prebuilt sandbox image |
| `AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION` | installed SDK version | Optional exact live-test override |
Expand All @@ -194,7 +205,7 @@ From the AI-Q repository root, provision the pinned SDK, hard policy, and image:

```bash
./scripts/openshell/setup_openshell.sh \
--openshell-version 0.0.80 \
--openshell-version 0.0.88 \
--policy offline \
--landlock-compatibility hard_requirement
```
Expand All @@ -221,7 +232,7 @@ Export the same image and policy for the AI-Q process:
export AIQ_OPENSHELL_GATEWAY_NAME=openshell
export AIQ_OPENSHELL_IMAGE=aiq-openshell-demo:latest
export AIQ_OPENSHELL_POLICY_FILE="$PWD/configs/openshell/generated/aiq-openshell-policy.yaml"
export AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION=0.0.80
export AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION=0.0.88
```

Validate and start AI-Q with the production pairing in
Expand All @@ -245,7 +256,7 @@ AIQ_OPENSHELL_LIVE_TESTS=1 \
AIQ_OPENSHELL_GATEWAY_NAME=openshell \
AIQ_OPENSHELL_POLICY_FILE=configs/openshell/generated/aiq-openshell-policy.yaml \
AIQ_OPENSHELL_IMAGE=aiq-openshell-demo:latest \
AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION=0.0.80 \
AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION=0.0.88 \
.venv/bin/python -m pytest -m integration -vv \
tests/aiq_agent/agents/deep_researcher/sandbox/test_openshell_live.py
```
Expand All @@ -264,7 +275,7 @@ Bash behavior:
```bash
brew install bash
/opt/homebrew/bin/bash ./scripts/openshell/setup_openshell.sh \
--openshell-version 0.0.80 \
--openshell-version 0.0.88 \
--local-demo \
--policy offline
```
Expand All @@ -290,15 +301,15 @@ instead of the caller's transient launchd environment:

The wrapper downloads the installer from the certified OpenShell tag to a
temporary file, verifies its checked-in SHA-256, and invokes the official
installer with `OPENSHELL_VERSION=v0.0.80`. It refuses root, non-Apple-Silicon
installer with `OPENSHELL_VERSION=v0.0.88`. It refuses root, non-Apple-Silicon
hosts, and ambiguous OpenShell installations. It never pipes a download into a
shell, creates an AI-Q tap, launches a raw gateway, disables TLS, or stores
credentials.

OpenShell's release installer stages its formula in a local `nvidia/openshell`
tap created with Homebrew's `--no-git` mode. Because that tap has no Git remote,
`brew upgrade openshell` cannot fetch a newly released formula; it can leave the
packaged gateway on `0.0.72` while AI-Q's virtual-environment CLI/SDK is `0.0.80`.
packaged gateway on `0.0.72` while AI-Q's virtual-environment CLI/SDK is `0.0.88`.
Rerun the explicit pinned installer wrapper when directed. Do not copy a formula
manually, create a custom AI-Q tap, use `launchctl setenv`, or keep multiple
OpenShell service identities.
Expand All @@ -325,10 +336,10 @@ AIQ_OPENSHELL_REQUIRE_HARD_LANDLOCK=false \

AIQ_OPENSHELL_POLICY_FILE=configs/openshell/generated/aiq-openshell-policy.yaml \
AIQ_OPENSHELL_IMAGE=aiq-openshell-demo:latest \
AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION=0.0.80 \
AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION=0.0.88 \
AIQ_OPENSHELL_REQUIRE_HARD_LANDLOCK=false \
./scripts/start_e2e.sh --config_file configs/config_openshell.yml \
2>&1 | tee e2e-openshell-0.0.80.log
2>&1 | tee e2e-openshell-0.0.88.log
```

Run the same mechanics through the convenience wrapper with the explicit demo
Expand All @@ -339,7 +350,7 @@ opt-in:
--gateway openshell \
--policy configs/openshell/generated/aiq-openshell-policy.yaml \
--image aiq-openshell-demo:latest \
--expected-gateway-version 0.0.80 \
--expected-gateway-version 0.0.88 \
--allow-best-effort-landlock
```

Expand All @@ -360,9 +371,11 @@ to substitute a local gateway if the remote service is unavailable:
--policy-file configs/openshell/generated/aiq-openshell-policy.yaml
```

The disposable strict capability probe is mandatory. After it passes,
export `AIQ_OPENSHELL_GATEWAY_NAME=enterprise` and run the live suite. Never fall
back to a plaintext registration, insecure TLS, or a local raw gateway.
The disposable strict capability probe is mandatory. After it passes, export
`AIQ_OPENSHELL_GATEWAY_NAME=enterprise` and run the live suite. Set
`AIQ_OPENSHELL_WORKSPACE` only when the registered gateway uses a non-default
workspace. Never fall back to a plaintext registration, insecure TLS, or a
local raw gateway.

## Shared Debug Attachment

Expand Down Expand Up @@ -425,7 +438,7 @@ AIQ_OPENSHELL_LIVE_TESTS=1 \
AIQ_OPENSHELL_GATEWAY_NAME=openshell \
AIQ_OPENSHELL_POLICY_FILE=configs/openshell/generated/aiq-openshell-policy.yaml \
AIQ_OPENSHELL_IMAGE=aiq-openshell-demo:latest \
AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION=0.0.80 \
AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION=0.0.88 \
.venv/bin/python -m pytest -m integration -vv \
tests/aiq_agent/agents/deep_researcher/sandbox/test_openshell_live.py
```
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ viz = [
]

[tool.aiq.openshell]
release-tag = "v0.0.80"
release-tag = "v0.0.88"
adapter-version = "0.1.0"
installer-sha256 = "c15d6cb8090e1c7c8d79a320b5bcbdaf1c15c2363942d81e84b56e03b836249e" # pragma: allowlist secret

Expand Down
7 changes: 4 additions & 3 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ the reusable image. `openshell/install_gateway.sh` is the explicit Apple Silicon
entry point for installing the official packaged gateway. `openshell/start_openshell_gateway.sh`
validates an authenticated registered
gateway and performs a disposable version/policy/selector/execution/cleanup probe. AI-Q
then owns one attested physical sandbox per job. OpenShell `0.0.80` is the supported
version because it contains the required policy-revision and request-label fixes.
then owns one attested physical sandbox per job. OpenShell `0.0.88` is the supported
version because it adds the Linux hard-Landlock file-path fix while retaining the required
policy-revision and request-label capabilities.
The quick start below is the Linux production pairing; activate the repository virtual
environment first. macOS requires the explicit local-demo pairing in the canonical guide.

```bash
source .venv/bin/activate
./scripts/openshell/setup_openshell.sh --openshell-version 0.0.80 --policy offline
./scripts/openshell/setup_openshell.sh --openshell-version 0.0.88 --policy offline
./scripts/openshell/start_openshell_gateway.sh --gateway-name openshell
./scripts/start_e2e.sh --config_file configs/config_openshell.yml
```
Expand Down
41 changes: 27 additions & 14 deletions scripts/openshell/check_openshell_readiness.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import argparse
import importlib.metadata
import os
import re
import subprocess
import sys
Expand Down Expand Up @@ -42,6 +43,7 @@ class ReadinessConfig:
"""Non-secret inputs for one disposable readiness probe."""

gateway: str | None
workspace: str
image: str
policy: Path
openshell_bin: Path
Expand Down Expand Up @@ -86,16 +88,16 @@ def _is_not_found(exc: BaseException, grpc: Any) -> bool:
return isinstance(exc, grpc.Call) and exc.code() == grpc.StatusCode.NOT_FOUND


def _verify_absent(client: Any, name: str, selector: str, grpc: Any) -> None:
def _verify_absent(client: Any, name: str, selector: str, grpc: Any, *, workspace: str) -> None:
try:
client.get(name)
client.get(name, workspace=workspace)
except grpc.RpcError as exc:
if not _is_not_found(exc, grpc):
raise ReadinessError("cleanup_failed") from exc
else:
raise ReadinessError("cleanup_failed")
try:
selected = client.list(label_selector=selector)
selected = client.list(workspace=workspace, label_selector=selector)
except Exception as exc: # noqa: BLE001 - never expose SDK response details
raise ReadinessError("cleanup_failed") from exc
if any(getattr(item, "name", None) == name for item in selected):
Expand All @@ -106,6 +108,7 @@ def _verify_policy(
*,
client: Any,
sandbox: Any,
workspace: str,
expected_policy: Any,
timeout_seconds: float,
openshell_pb2: Any,
Expand All @@ -114,7 +117,11 @@ def _verify_policy(
stub = getattr(client, "_stub", None)
if stub is None or not hasattr(stub, "GetSandboxPolicyStatus") or not hasattr(stub, "GetSandboxConfig"):
raise ReadinessError("sdk_capability_missing")
status_request = openshell_pb2.GetSandboxPolicyStatusRequest(name=sandbox.name, version=0)
status_request = openshell_pb2.GetSandboxPolicyStatusRequest(
name=sandbox.name,
version=0,
workspace=workspace,
)
config_request = sandbox_pb2.GetSandboxConfigRequest(sandbox_id=sandbox.id or sandbox.name)
deadline = time.monotonic() + timeout_seconds
pending_effective = False
Expand All @@ -123,7 +130,7 @@ def _verify_policy(
if remaining <= 0:
raise ReadinessError("policy_status_inconsistent" if pending_effective else "attestation_timeout")
try:
refreshed = client.get(sandbox.name)
refreshed = client.get(sandbox.name, workspace=workspace)
status = stub.GetSandboxPolicyStatus(status_request, timeout=min(5.0, remaining))
config = stub.GetSandboxConfig(config_request, timeout=min(5.0, remaining))
except Exception as exc: # noqa: BLE001 - never expose SDK response details
Expand Down Expand Up @@ -215,28 +222,32 @@ def run_check(config: ReadinessConfig) -> tuple[str, str]:
if None in version_identities or len(version_identities) != 1:
raise ReadinessError("version_mismatch")
if (
not _accepts_keyword(client.create, "name")
not _accepts_keyword(client.create, "workspace")
or not _accepts_keyword(client.create, "name")
or not _accepts_keyword(client.create, "labels")
or not _accepts_keyword(client.list, "label_selector")
):
raise ReadinessError("request_labels_unsupported")
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

sandbox_name = f"aiq-readiness-{uuid4().hex[:12]}"
sandbox_name = f"aiqr-{uuid4().hex[:12]}"
cleanup_name = sandbox_name
primary_error: ReadinessError | None = None
try:
sandbox = client.create(spec=spec, name=sandbox_name, labels=labels)
sandbox = client.create(workspace=config.workspace, spec=spec, name=sandbox_name, labels=labels)
cleanup_name = getattr(sandbox, "name", None) or sandbox_name
if sandbox.name != sandbox_name:
raise ReadinessError("probe_failed")
sandbox = client.wait_ready(sandbox_name, timeout_seconds=config.ready_timeout_seconds)
selected = client.list(label_selector=selector)
sandbox = client.wait_ready(
sandbox_name, workspace=config.workspace, timeout_seconds=config.ready_timeout_seconds
)
selected = client.list(workspace=config.workspace, label_selector=selector)
matches = [item for item in selected if getattr(item, "name", None) == sandbox_name]
if len(selected) != 1 or len(matches) != 1 or dict(getattr(matches[0], "labels", {})) != labels:
raise ReadinessError("selector_mismatch")
_verify_policy(
client=client,
sandbox=sandbox,
workspace=config.workspace,
expected_policy=expected_policy,
timeout_seconds=config.policy_load_timeout_seconds,
openshell_pb2=openshell_pb2,
Expand All @@ -253,15 +264,15 @@ def run_check(config: ReadinessConfig) -> tuple[str, str]:
finally:
try:
try:
client.get(cleanup_name)
client.get(cleanup_name, workspace=config.workspace)
except grpc.RpcError as exc:
if not _is_not_found(exc, grpc):
raise
else:
if not client.delete(cleanup_name):
if not client.delete(cleanup_name, workspace=config.workspace):
raise ReadinessError("cleanup_failed")
client.wait_deleted(cleanup_name)
_verify_absent(client, cleanup_name, selector, grpc)
client.wait_deleted(cleanup_name, workspace=config.workspace)
_verify_absent(client, cleanup_name, selector, grpc, workspace=config.workspace)
except Exception as exc: # noqa: BLE001 - cleanup failure overrides probe failure
raise ReadinessError("cleanup_failed") from exc
if primary_error is not None:
Expand All @@ -272,6 +283,7 @@ def run_check(config: ReadinessConfig) -> tuple[str, str]:
def _parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--gateway-name", default=None)
parser.add_argument("--workspace", default=os.getenv("AIQ_OPENSHELL_WORKSPACE", "default"))
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
parser.add_argument("--image-name", default="aiq-openshell-demo:latest")
parser.add_argument("--policy-file", type=Path, required=True)
parser.add_argument("--openshell-bin", type=Path, required=True)
Expand All @@ -284,6 +296,7 @@ def main(argv: list[str] | None = None) -> int:
args = _parser().parse_args(argv)
config = ReadinessConfig(
gateway=args.gateway_name,
workspace=args.workspace,
image=args.image_name,
policy=args.policy_file,
openshell_bin=args.openshell_bin,
Expand Down
5 changes: 3 additions & 2 deletions scripts/openshell/setup_openshell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ remains owned by the AI-Q runtime.
Canonical operator guide: docs/source/deployment/openshell.md

Options:
--openshell-version VERSION Certified exact OpenShell version only (0.0.80).
--openshell-version VERSION Certified exact OpenShell version only (0.0.88).
--policy CHOICE Sandbox network policy.
Choices: $SUPPORTED_POLICIES
Default: asks in an interactive shell, offline otherwise.
Expand Down Expand Up @@ -108,7 +108,7 @@ Examples:
scripts/openshell/setup_openshell.sh
scripts/openshell/setup_openshell.sh --policy python-packages
scripts/openshell/setup_openshell.sh --policy custom --allow github,pypi,nvidia,tavily
scripts/openshell/setup_openshell.sh --openshell-version 0.0.80 --policy offline
scripts/openshell/setup_openshell.sh --openshell-version 0.0.88 --policy offline
scripts/openshell/setup_openshell.sh --local-demo --policy offline
EOF
}
Expand Down Expand Up @@ -790,6 +790,7 @@ wired into the launcher, config, and live suite. These are optional overrides
for custom shells or remote gateways:

export AIQ_OPENSHELL_GATEWAY_NAME="openshell"
export AIQ_OPENSHELL_WORKSPACE="default"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
export AIQ_OPENSHELL_IMAGE="$IMAGE_NAME"
export AIQ_OPENSHELL_POLICY_FILE="$POLICY_FILE"
export AIQ_OPENSHELL_EXPECTED_GATEWAY_VERSION="$OPENSHELL_VERSION"
Expand Down
6 changes: 6 additions & 0 deletions scripts/openshell/smoke_openshell_isolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ def _args(argv: list[str] | None = None) -> argparse.Namespace:
default=os.getenv("AIQ_OPENSHELL_GATEWAY_NAME"),
help="Registered OpenShell gateway name; default uses the active gateway",
)
parser.add_argument(
"--workspace",
default=os.getenv("AIQ_OPENSHELL_WORKSPACE", "default"),
help="OpenShell workspace that scopes live-test sandbox operations",
)
parser.add_argument(
"--policy",
default=os.getenv(
Expand Down Expand Up @@ -62,6 +67,7 @@ def _environment(args: argparse.Namespace, source: Mapping[str, str] | None = No
env["AIQ_OPENSHELL_GATEWAY_NAME"] = args.gateway
else:
env.pop("AIQ_OPENSHELL_GATEWAY_NAME", None)
env["AIQ_OPENSHELL_WORKSPACE"] = args.workspace
env["AIQ_OPENSHELL_POLICY_FILE"] = args.policy
env["AIQ_OPENSHELL_IMAGE"] = args.image
if args.expected_gateway_version:
Expand Down
Loading
Loading