Skip to content

fix(examples): retain GTC DC Kubernetes agent files on PVCs - #14312

Merged
cv merged 5 commits into
v1from
fix/gtc-dc-k8s-persistent-storage
Nov 9, 2026
Merged

cv merged 5 commits into
v1from
fix/gtc-dc-k8s-persistent-storage

Conversation

@sandl99

@sandl99 sandl99 commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Add explicit persistent workspace and artifact mounts for OpenClaw and Hermes in the GTC DC Kubernetes YAML example.

Problem

The example relies on OpenShell's automatic sandbox PVC, whose lifetime follows the sandbox. It declares no external storage for agent files that must survive sandbox replacement.

Change

Use one writable, operator-provisioned PVC per sandbox: gtc-dc-openclaw-data and gtc-dc-hermes-data. Mount each claim's workspace and artifacts subdirectories at /sandbox/workspace and /sandbox/artifacts.

Document gateway Helm permissions, PVC preparation, and admission labels in the GTC DC README. Retaining files does not resume conversations.

Beyond CI

A reviewer reported live verification on k3s v1.37.1 with OpenShell 0.1.7: both agents started, re-plan was clean, and mounted files survived sandbox replacement after pod loss and destroy. This used a managed gateway; the example's external-gateway authentication path remains unqualified. Operators must provision and authorize both PVCs and prepare their workspace and artifacts subdirectories writable by UID/GID 10001:10001 before applying.

@sandl99

sandl99 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening

Authoring cutoff: 2026-11-09T07:56:59.829Z, before the request to publish. The persisted session metadata matches the repository working directory, and its tool record contains the YAML patch and validation. Publishing activity is excluded.

Field Status Value Evidence or limit
Harness recorded Codex 0.167.0; codex-tui in VS Code Persisted session metadata.
Skills recorded test-driven-development; network-cli-outside-sandbox Complete skill reads in tool outputs before cutoff; the available-skill catalog is not counted as use.
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read) User instruction injection and complete file read in the persisted record.
Tool calls recorded 23 exec wrapper calls; separately, 29 observable nested attempts: exec_command 24, Slack read_thread 1, web.run 1, GitHub fetch_file 2, apply_patch 1 Counted attempted calls, including failures, from the complete wrapper inputs; wrapper and nested counts are separate. Shell subprocesses are not counted as tool calls.
Session window recorded 2026-11-09T07:40:11.256Z to 2026-11-09T07:56:59.829Z; 16 min 49 sec Entire authoring session through cutoff, including idle time, the initial investigation, and the diff request; no inherited fork history is recorded.
Compactions recorded 0 No compaction events in the persisted record through cutoff.
Models recorded gpt-6.1-sol All turn contexts through cutoff agree.
Reasoning levels recorded high All turn contexts through cutoff agree.

Local YAML parsing, JSON Schema validation with numeric formats, and git diff --check passed. After merging the latest base during publication, schema validation and whitespace checks passed again. The focused SDK example round-trip test and cargo ci live-kind were attempted offline but blocked by an uncached pinned OpenShell dependency. Docker is unavailable locally; live PVC retention and native history behavior remain unverified.

@sandl99 sandl99 added the v1 NemoClaw v1 branch label Nov 9, 2026
@sandl99
sandl99 requested a review from cv November 9, 2026 08:03
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

@sandl99

sandl99 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

Live Kubernetes retention evidence

PASS: OpenClaw and Hermes retained the tested workspace and artifact files after forced Pod loss and managed sandbox replacement. Tested YAML commit: 8829e545539dd5249b9d29c6bcdb3680520b0b37. Results recorded on 2026-11-09 at 08:46 UTC.

Recovery caveat: on the installed runtime, deleting the Pods caused OpenShell to suspend both sandboxes. Recovery required nemoclaw plan / nemoclaw apply with the unchanged deployment YAML. This establishes mounted-file retention through replacement; automatic recovery after Pod deletion did not pass.

Configuration exercised

  • Ubuntu 24.04, Linux AMD64, native single-node Kubernetes, local-path storage.
  • One operator-provisioned 1 GiB RWO PVC per agent: gtc-dc-openclaw-data and gtc-dc-hermes-data.
  • Prepared each claim's workspace and artifacts subdirectories writable by UID/GID 10001:10001 before first agent startup.
  • Both driverConfig blocks were unchanged from the tested PR commit, including agent-data, writable flags and subpaths.
  • Adapted deployment identity, image references and gateway binding for an isolated managed development gateway. The example's external-gateway authentication path was not qualified.

Checks and results

Seeded four files per agent once: MEMORY.md, a memory journal, a binary fixture containing NUL bytes, and a UTF-8 artifact JSON. Sealed their original bytes and SHA-256 hashes before deleting either Pod. No files were reseeded, restored or copied after baseline.

Check Before Pod deletion After managed recovery
Original file bytes and SHA-256 8/8 pass 8/8 pass
Data PVC identities Two Bound caller-owned PVCs Both original UIDs retained
Actual writable workspace/artifact subpath mounts Pass Pass
OpenClaw native memory read Pass: actual read call/result Pass: fresh read call/result
Hermes native memory read Pass: actual read_file call/result Pass: fresh read_file call/result

The native-read prompts did not contain the stored markers. Both agents returned their original markers; their native transcripts independently confirmed fresh file-tool calls and loaded content.

Both Pod and Sandbox UIDs changed during recovery. The unchanged YAML planned four replacements, restricted to the two test sandboxes and their agent runtimes.

Resource Original UID UID after recovery
OpenClaw Pod e336e218-0372-4ba3-a1dd-88ba3034944f 4e78e29e-edda-4d00-a856-fe67154bfe4d
Hermes Pod 688a562c-607d-4682-ac71-314ff50c8da6 0162bd71-6a62-4676-a23c-2087ae27e818
OpenClaw data PVC 32f183af-953b-4b10-8245-0ba2da1cbc45 Unchanged
Hermes data PVC c7a4c0b7-5db1-4ce6-aab5-abb64fa042fd Unchanged

Final verification added another 8/8 byte comparisons. All test Pods were Running/Ready, the final plan reported No resource changes planned., and all 21 pre-existing Pod UIDs remained unchanged.

Runtime scope and limits

This exercised the PR YAML using the VM's existing CLI/gateway and matching cached images, not a rebuilt qualification of the PR's full dependency stack.

  • CLI source: 2ed67d991e8cbbd68c1fc981062e59b546c58f7e.
  • Image Fabric revision: ddf59e875d50d925991cd40c44dc63facf391bac.
  • OpenClaw image digest: sha256:3b0a32621086fe4ac7356bf0b4f64a112f38ee185019b8817edbb5427c93d0f2.
  • Hermes image digest: sha256:25dcc358cfaf265cbffafcc6ab81a6dfcb40aae9ff2da168b45ee824b85f81aa.

The pass covers files in the explicit workspace/artifact mounts. OpenClaw's native state remained under /sandbox/tmp, outside those mounts. This does not establish conversation resume or persistence of skills saved in that temporary native state. Node/disk loss and cross-node recovery were not tested.

Retained evidence

Test namespace: nc-pvc14312-latest-246e9cca. The deployment and its two data PVCs remain running for inspection.

Evidence is retained on the test VM at ~/nc-pvc-14312-latest-20261109/:

  • retention-results.yaml: results, runtime identities and limits.
  • deployment.yaml, storage.yaml, prepare-storage.yaml: applied configuration and storage preparation.
  • sealed-fixtures.json, phase file reports and native-read proofs/transcripts.
  • restart-transition.json, restart-plan.log, restart-apply.log, final-plan.log.
  • final-assertion-ledger.md, evidence-seal.json, evidence-sha256.json.

Report SHA-256: f1e1b886d17d1449b0a67ef4080056b7efa397af97131a88e1075a1f93686fdc.
Applied YAML SHA-256: 15991c35cdb58e5a30be9df195e68ea4039fac5b91a75ca53855bce30055d768.

The inference-key scan passed for the saved top-level evidence files. Private deployment state was excluded from the evidence checksum manifest.

@gaveezy
gaveezy self-requested a review November 9, 2026 10:11
@gaveezy

gaveezy commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Tested on a live cluster: k3s v1.37.1, Agent Sandbox v1.0.3, NemoClaw v1 @ e4047be with its pinned OpenShell 0.1.7 (managed gateway), driverConfig blocks unchanged from this PR.

The mounts work, but applying the example as documented fails twice, because the prerequisites removed in 552769b aren't stated anywhere else:

1. The gateway rejects driver config by default

OpenShell CreateSandbox rejected (FailedPrecondition): caller driver config is disabled; a gateway administrator must enable allow_driver_config

The gateway administrator must enable allow_driver_config for openshell.drivers.kubernetes. Set it in the chart values (gatewayConfig), not only in the rendered TOML: the chart grants the gateway the PVC get that admission needs only from that value; otherwise apply fails with an opaque observation query failed.

2. Unlabelled PVCs are not admitted

OpenShell CreateSandbox rejected (FailedPrecondition): PersistentVolumeClaim 'nc-pr14312/gtc-dc-openclaw-data': external resource not admitted by required labels

Resource admission is on by default, so each claim needs:

openshell.ai/sandbox-attachable: "true"
openshell.ai/sandbox-attachable-workspace: <OpenShell workspace>  # printed by `nemoclaw plan`; not the namespace

Docs: External resource admission

Suggestion: restore a short version of the removed header (or add it to examples/gtc-dc/README.md), for example:

# Before applying: the gateway administrator enables
# openshell.drivers.kubernetes.allow_driver_config, and the platform operator
# creates gtc-dc-openclaw-data and gtc-dc-hermes-data in the sandbox namespace,
# with workspace/ and artifacts/ writable by 10001:10001, each labelled
#   openshell.ai/sandbox-attachable: "true"
#   openshell.ai/sandbox-attachable-workspace: <workspace from nemoclaw plan>
# See docs/build-deploy/state.md#keep-agent-files-on-mounted-volumes.

With both in place, everything else passed: both agents started, re-plan was clean, and files under /sandbox/workspace and /sandbox/artifacts survived sandbox replacement after pod loss and nemoclaw destroy (checksums identical).

@cv
cv merged commit ec0fcee into v1 Nov 9, 2026
70 of 72 checks passed
@cv
cv deleted the fix/gtc-dc-k8s-persistent-storage branch November 9, 2026 11:11
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
@wscurran wscurran added area: docs Documentation, examples, guides, or docs build area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance integration: hermes Hermes integration behavior integration: openclaw OpenClaw integration behavior platform: k8s Affects Kubernetes deployments labels Nov 12, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Documentation, examples, guides, or docs build area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance integration: hermes Hermes integration behavior integration: openclaw OpenClaw integration behavior platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants