Skip to content

Policy drift check copies OpenShell's baseline paths and omits GPU additions #12424

Closed

Description

@cv

Investigation Summary

  • loaded_policy_matches (crates/nemoclaw-sdk/src/openshell/network.rs:42) hard-codes the filesystem paths the supervisor adds to loaded policies; its comment (line 39) cites openshell-supervisor at 7e7a8d56, not the pin 1fe79f53.
  • At the pin, collect_baseline_enrichment_paths in crates/openshell-supervisor/src/lib.rs also adds GPU_BASELINE_READ_ONLY, GPU_BASELINE_READ_WRITE, and enumerated GPU device nodes when GPU devices exist, and removes read-write paths from the read-only list.
  • NemoClaw's copy contains none of the GPU paths.
  • The enrichment is private to openshell-supervisor; openshell-policy does not export it.
  • Unknown: whether export of a GPU sandbox reports false drift; not reproduced.

Description

The drift check re-derives OpenShell's private policy enrichment from a copied list.
The copy matches the non-GPU proxy baseline at the pin but omits the GPU additions, so a GPU sandbox's loaded policy can differ from the expected value while the authored policy is unchanged.

Expected: NemoClaw compares authored intent through an OpenShell observation of the authored policy or its hash, or through an enrichment function that openshell-policy exports, instead of a copied path list.

Reproduction Steps

Run from a NemoClaw checkout at 515fad88f.

  1. Show the copied baseline:

    sed -n '36,95p' crates/nemoclaw-sdk/src/openshell/network.rs
  2. Show the pinned supervisor's baseline lists:

    curl -fsSL https://raw.githubusercontent.com/NVIDIA/OpenShell/1fe79f53991debf32776853a60f0cbd4e127dcfb/crates/openshell-supervisor/src/lib.rs | grep -nE 'const (PROXY|GPU)_BASELINE|fn collect_baseline_enrichment_paths|if include_gpu'
  3. Confirm the SDK copy has no GPU paths:

    grep -n nvidia crates/nemoclaw-sdk/src/openshell/network.rs || echo 'no GPU paths in network.rs'

Environment

  • NemoClaw: v1 at 515fad88f
  • OpenShell pin: 1fe79f53991debf32776853a60f0cbd4e127dcfb (versions.json)
  • NeMo Fabric pin: 24f068c895e5cbc30286bc743498be4e5014d658 (crates/nemoclaw-sdk/Cargo.toml)
  • OpenTofu: 1.12.6 (versions.json)
  • Host: macOS arm64 source checkout; static inspection only, no deployment

Debug Output

Not applicable: this finding comes from static source inspection at the revisions above.
No deployment ran, so there is no nemoclaw debug output.

Logs

# Step 2
1374:const PROXY_BASELINE_READ_ONLY: &[&str] = &[
1390:const PROXY_BASELINE_READ_WRITE: &[&str] = &["/tmp", "/dev/null"];
1405:const GPU_BASELINE_READ_ONLY: &[&str] = &[
1431:const GPU_BASELINE_READ_WRITE: &[&str] = &[
1473:fn collect_baseline_enrichment_paths(
1490:    if include_gpu {
1512:    let gpu_device_nodes = if include_gpu {
# Step 3
no GPU paths in network.rs

Checklist

  • I confirmed this bug is reproducible
  • I searched existing issues and this is not a duplicate

Status at v1 18ed1a8616 — 2026-10-01: remaining work.

The OpenShell v0.1.2 upgrade includes the upstream GPU-policy fix; GPU enrichment stays with the workload. NemoClaw still duplicates the proxy baseline because the pinned upstream helper is private. Removing that copy needs a supported upstream policy API while preserving strict drift detection. No new live GPU qualification was performed in this audit.

Activity

  1. added theissue type on Sep 29, 2026
  2. added
    area: sandbox
    needs: triage
    v1
    on Sep 29, 2026
  3. cv commented on Sep 29, 2026

    @cv
    CollaboratorAuthor

    Committed to v1 in e5cb9082c6.

    Upgraded NemoClaw's OpenShell source, Rust SDK, and gateway/supervisor/sandbox image pins to v0.1.2, revision 6648bd0c290efbc41ba131ee9831ee45cd431f94.

    This release includes OpenShell #3580. OpenShell now adds GPU filesystem access inside the workload, without writing those additions back to the gateway policy that NemoClaw compares. That should remove the suspected GPU false drift. We have not verified export and unchanged reapply on a live GPU sandbox.

    This issue stays open because NemoClaw still copies OpenShell's proxy filesystem path list. The release still adds those paths to the observed policy through a private helper; upgrading does not provide the authored-policy observation or public enrichment function needed to delete our copy.

    The upgrade also adapts the changed workspace-scoped protobuf calls and removes the rejected tls: terminate and tls: passthrough settings. Omitting tls retains automatic TLS handling.

    Validation on Linux ARM64: 903 workspace tests, 40 tests using a fresh native bundle against local gateway fixtures, and 23 standalone OpenTofu tests passed. Formatting, strict Clippy, dependency license/source checks, generated schema, and documentation checks also passed. These checks do not qualify live GPU behavior.

  4. added
    area: policy
    on Oct 3, 2026
  5. changed the issue type fromtoon Oct 3, 2026
  6. removed
    needs: triage
    on Oct 3, 2026
  7. added a commit that references this issue on Oct 18, 2026
    7d7772e
  8. cv commented on Oct 18, 2026

    @cv
    CollaboratorAuthor

    Done in #13411: a sandbox records the hash OpenShell reports for its loaded policy, OpenShell's additions included, once every declared rule is intact. Later reads compare that hash, so NemoClaw no longer copies OpenShell's list of added paths.

  9. added this to the Roadmap: GTC DC 2026 milestone on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: policyarea: sandboxv1

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions