Skip to content

test(contract): migrate provider contract scenarios to tofu test - #14064

Merged
sandl99 merged 6 commits into
v1from
test/14059-hcl-contract-migration
Nov 2, 2026
Merged

sandl99 merged 6 commits into
v1from
test/14059-hcl-contract-migration

Conversation

@sandl99

@sandl99 sandl99 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Failure

Provider contract scenarios lived in Rust: large HCL strings embedded in test code, a Rust command sequence for each scenario, and a test per generated OpenShell fixture that repeated the same provider lifecycle for every harness. The vLLM runtime contract also ran the bundle's vllm provider instead of the one built from the checkout.

Decision

Implements #14059 (to close after merge, as v1 PRs do not close issues). Part of #13933; coordinates with #14060 (#14063), whose system tests now share the OpenShell observations.

Scenarios move into authored modules beside each provider, run with OpenTofu 1.12's native tofu test:

Provider Modules
fabric fixtures/ (Pi agent lifecycle, a sandbox that is already gone), capabilities/
openshell standalone/, credentials/, sandbox/, gateway/
nemoclaw runtime/, host/, storage/

Shared support in nemoclaw-test-fixtures:

  • The system tests' OpenShell observations and gateway declarations move into openshell::State::observations and State::declare; the system tests and the contract tests both use them. Credentials are reported by source, never by value.
  • The fake OpenShell gateway serves them through the existing fixture_state data source (Fixture::control). The data source depends on each module's resources, so every run checks its own result.
  • TofuWorkspace copies a module and runs its test files, and stages non-NVIDIA bundle providers such as Docker; tofu::contract_sources feeds the coverage guards from every file under tests/contract.
  • openshell::test_against_gateways runs a module's files side by side, each against its own gateway.

Rust keeps only what tofu test cannot express: a failed command (any provider error fails a run), a saved plan or its planned actions, and the state file. Superseded Rust tests and helpers are deleted. Generated OpenShell fixtures now run once per resource shape (8 shapes) instead of once per example (22), replacing the per-file test registry; the fixtures themselves are unchanged.

Assertions were consolidated rather than translated: plan actions became observable outcomes (objects created again or kept); runtime decoding is the provider's own check; rejected settings already owned by schema snapshots or unit tests, request counts, and fabric_harnesses checks repeated in the nemoclaw contract were dropped.

Still in Rust, with reasons in the module docs: failure paths in each family, saved-plan rechecks, state-file comparisons, references plan shapes, replacement_cleanup state edits, SSH-simulator services, and kubernetes_lifecycle, which changes the in-memory Kubernetes API between steps.

Net: Rust +1,122/-3,325; HCL +1,232/-37; docs +36/-12.

#14063 moves crates/nemoclaw-e2e/tests/hcl_integration/fixtures.rs; whichever PR merges second keeps that file's call to the shared observations.

Validation

  • cargo test -p fabric-provider -p openshell-provider -p nemoclaw-provider --test contract -- --include-ignored with a v1 bundle: all pass. Times before → after: fabric 4.28 s → 4.63 s; openshell 11.71 s (69 tests) → 10.03 s (36); nemoclaw 7.78 s (28) → 7.25 s (22). The slowest test under full nextest load, pi_agent_lifecycle, takes 7.4 s, within the Fabric per-test limit.
  • Regression checks: removing the runtime contract from the vLLM launch environment fails the runtime assertion with its message; changing the default service authorization mode fails both sandbox tests.
  • The system hcl_integration shards with the lifecycle profile, which now use the shared observations: all pass.
  • cargo nextest run for nemoclaw-test-fixtures, openshell-provider, fabric-provider, nemoclaw-provider, and nemoclaw-build; openshell_contract_fixtures in nemoclaw-e2e.
  • cargo clippy --tests -- -D warnings for the changed crates, cargo fmt --check, and tofu fmt on the changed modules.
  • Deferred to CI: the full lifecycle profile on every platform, including Windows. No production code changed, so the bundle is unchanged.

Move provider contract scenarios into authored modules beside each provider,
run with OpenTofu's native test command:

- fabric: Pi agent lifecycle and image capabilities
- openshell: standalone registrations and sandboxes, tool credentials,
  sandbox settings, and gateway settings
- nemoclaw: runtime contracts, host checks, and retained storage

The fake OpenShell gateway serves a fixture_state control endpoint that
reports its objects and removes them on request. TofuWorkspace copies a
module and runs one test file. Rust keeps the checks that need a failed
command, a saved plan or its actions, or the state file.

Generated OpenShell fixtures now run once per resource shape instead of once
per example, replacing the per-file test registry.

Refs #14059
Move the duplicated native test runners and coverage source readers into
nemoclaw-test-fixtures: TofuWorkspace::test_all, tofu::native_sources, and
openshell::test_against_gateways. Serve host health and models from one
fixture.

Refs #14059
@sandl99

sandl99 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi coding agent 1.2.0 Session format v3 in the record; the version comes from the harness install path in the system prompt, not the record
Skills recorded nemoclaw-contributor-create-pr (complete read) Tool reads in the session record to the cutoff
Instruction files recorded AGENTS.md (injected); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Project context injection and tool reads to the cutoff
Tool calls partial typescript: 243 Wrapper calls, including failed ones, to the cutoff; the wrapper hides nested shell, git, and gh calls
Session window recorded 2026-11-02T07:10Z to 2026-11-02T08:25Z; 75 min First event to the last recorded event before publication, including idle time
Compactions recorded 0 No compaction entries; 24 context edits elided tool results without compacting
Models recorded nvidia-internal/azure/anthropic/claude-opus-5-5 Model change event; no later changes
Reasoning levels recorded medium; high Thinking-level changes, in order

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

…tion

The test applies every shape side by side; on linux_amd64 it slowed another OpenShell contract test past its 8 s limit.

Refs #14059
Move the system tests' OpenShell observations and gateway declarations into
nemoclaw-test-fixtures, and use them for the contract tests too. Credentials
are reported by source, never by value.

Read the fixture after each run's changes, so every run checks its own
result and the separate observe runs go away. Find coverage in every file
under tests/contract instead of hand-written file lists, and stage the
bundle's Docker provider through TofuWorkspace.

Refs #14059
@sandl99 sandl99 added the v1 NemoClaw v1 branch label Nov 2, 2026
@sandl99
sandl99 requested a review from cv November 2, 2026 10:03
Each provider's tests/contract now keeps scenarios that pass in hcl/, as
tofu test modules, and Rust tests of commands that must fail in failures/.
main.rs starts each module's fakes and runs it; the remaining root files hold
shared fakes and checks of plans and state. No test changes what it checks.

Refs #14059
@sandl99
sandl99 enabled auto-merge (squash) November 2, 2026 13:10
@sandl99
sandl99 merged commit c17761c into v1 Nov 2, 2026
89 of 92 checks passed
@sandl99
sandl99 deleted the test/14059-hcl-contract-migration branch November 2, 2026 13:15
sandl99 added a commit that referenced this pull request Nov 2, 2026
#14090)

<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION &
AFFILIATES. All rights reserved. -->
<!-- SPDX-License-Identifier: Apache-2.0 -->

## Failure

Part of #14061 (parent #13933). Stacked on #14082, which is stacked on
#14088.

The live checks for several agents sharing one local model, and for
agents on a managed Ollama model, were Rust tests that no workflow ran:
the Spark plan-and-apply test needs GB10 hardware, and `shared_service`,
`managed_ollama`, and `existing_ollama` run against a simulated Ollama
service. Two more, `managed.rs` and `nemoclaw-sdk`'s `managed_live`,
only re-read state an earlier manual run left behind.

## Decision

Add two HCL E2E scenarios on the Live / HCL NVIDIA GPU runner. Each has
the four runs from #14082: apply through the bundled CLI, a reply from
each agent's recorded runtime, a plan without changes, and destroy that
keeps only the expected storage.

| Case | Deployment | Reply check |
|---|---|---|
| `docker-openclaw-hermes-vllm` | OpenClaw and Hermes sharing one vLLM
Qwen3-4B service with bearer authentication | Any reply from each |
| `docker-openclaw-hermes-ollama` | OpenClaw on NVIDIA hosted inference
beside Hermes on a managed Ollama `qwen3:0.6b` | OpenClaw answers
`FOUR`; Hermes any reply |

Both documents copy the integration cases
`docker-vllm-shared-two-agents` and `docker-hosted-ollama-two-agents`,
changing only what the GPU runner needs: the `rtx-pro-6000-blackwell`
hardware profile, candidate agent image templates, and their own
identity, port, and subnet. I first changed the shared cases instead,
but the profile and image changes alter resource addresses that the
#14063 integration scenarios assert, so `hcl_integration` failed; the
shared cases are unchanged here.

Live / HCL builds the `ollama` image for the Ollama case and binds
`nc-prototype-ollama@sha256:a…` to it, as it binds the vLLM and agent
images.

Deleted, with where each remaining check belongs:

| Deleted | Happy path now in | Other checks |
|---|---|---|
| `spark::spark_yaml_plans_and_applies_expected_resources` |
`docker-openclaw-hermes-vllm` | The Spark document's exact plan set:
#14063. GB10 hardware: a later Spark case. The image-change test stays
in `tests/e2e/rust/spark.rs`. |
| `shared_service` | `docker-openclaw-hermes-vllm` | Export/reapply of a
shared service: #14063 export test |
| `managed_ollama` | `docker-openclaw-hermes-ollama` | Capacity and
container-creation failures, storage retained without a container:
#14063 and #14064 `nemoclaw/storage` |
| `existing_ollama` | `docker-openclaw-hermes-ollama` (managed Ollama) |
A changed upstream model digest is refused: #14063. Reusing an existing
Ollama server has no live case yet. |
| e2e `managed.rs`, `nemoclaw-sdk` `managed_live` | Every scenario's
unchanged plan and destroy | None; they re-read an earlier run's state |

The service-image helpers that only those tests used are removed;
`remote_models` keeps the rest.

Net: +354/−641 across 16 files.

## Validation

- `cargo ci fmt`, `cargo ci clippy`, and `cargo ci test` (1,746 tests)
passed on darwin_arm64.
- `cargo ci lifecycle` on darwin_arm64: `hcl_integration` shards pass
with the shared cases unchanged. One run failed `nemoclaw-provider`
`service_readiness::standalone_readiness_defers_to_apply_rechecks_unchanged_services_and_allows_destroy`
under load; it passed twice when run alone, and this PR doesn't touch
providers.
- The Linux-only service-image modules don't compile on macOS. I
compiled them with clippy `-D warnings` after stripping their
`cfg(target_os = "linux")` gates in a scratch copy, which found the
helpers removed here; the files in the PR keep their gates.
- Both scenarios pass against a fake CLI and probe with the pinned
OpenTofu 1.12.9.
- Not run: the two Live / HCL GPU lanes. They need a push to
`run-hcl-e2e/**`, which hasn't been authorized. Until they pass, this PR
should not merge.
sandl99 added a commit that referenced this pull request Nov 2, 2026
…14088)

<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION &
AFFILIATES. All rights reserved. -->
<!-- SPDX-License-Identifier: Apache-2.0 -->

## Failure

`nemoclaw-e2e` builds one test binary, `integration` (`tests/main.rs`),
with three kinds of test in it: system tests against local fixtures,
live tests against real Docker, Kubernetes, images, or inference, and
non-ignored offline checks.
Only the module lists in `.config/nextest.toml` say which is which.
`hcl/` also mixes the shared NemoClaw documents (`hcl/cases`), the live
HCL (`hcl/main.tf`, `hcl/tests`, `hcl/verifier`), and the integration
`tofu test` root (`hcl/integration`), whose runner lives in
`tests/hcl_integration/`.

Related to #14060 and #14061; this PR resolves neither. #14063 will be
rebased on top of it.

## Decision

Split the binary into two trees, following the repository's
`tests/<layer>/main.rs` convention. This PR moves and renames files
only: no test, assertion, fixture behavior, or scenario changes. Rust
module names and test names are unchanged, so nextest filters and test
IDs keep working; only the binary ID changes.

```
Before                                   After
crates/nemoclaw-e2e/                     crates/nemoclaw-e2e/
├── hcl/                                 ├── cases/                  # from hcl/cases
│   ├── cases/                           ├── fixtures/               # unchanged (hosted parity)
│   ├── integration/                     ├── src/
│   │   ├── main.tf                      └── tests/
│   │   ├── harness/ modules/ tests/         ├── integration/        # binary integration: local fixtures only
│   ├── main.tf                              │   ├── main.rs
│   ├── tests/                               │   ├── hcl/            # from hcl/integration
│   └── verifier/                            │   ├── tofu_test/      # from tests/hcl_integration
├── fixtures/                                │   ├── helm_recovery.rs, helm_recovery/
├── src/                                     │   └── deployment.rs, remote_service.rs, ...
└── tests/                                   ├── e2e/                # binary e2e: live tests
    ├── main.rs        # binary integration  │   ├── main.rs
    ├── brev.rs        # binary brev         │   ├── hcl/            # from hcl/: main.tf, tests/, verifier/
    ├── fixtures/                            │   ├── fixtures/       # from tests/fixtures
    ├── hcl_integration/                     │   ├── service_images/
    ├── helm_recovery/                       │   └── hcl_live.rs, kubernetes_live.rs, ...
    ├── service_images/                      └── brev.rs             # binary brev, unchanged
    └── *.rs (41 modules)
```

In every other crate, `integration` is the ordinary unit-test binary;
`testing.md` now says so once.

### Placement

| Module | Binary | Reason |
|---|---|---|
| `deployment`, `export_observations`, `fabric_deployment`,
`kubernetes_agents`, `multi_agent`, `multiple_providers`,
`remote_service`, `helm_recovery` (+ `destroy_faults`),
`travel_example`, `travel_team_example` | `integration` | System tests
against fixture gateways, simulated engines and SSH hosts, and the
in-memory Kubernetes API. |
| `hcl_integration` | `integration` | The `tofu test` runner. Its
directory is now `tests/integration/tofu_test/`, declared with `#[path =
"tofu_test/mod.rs"] mod hcl_integration;` so that test names, the
`hcl-integration` test group filter, and documentation stay the same. |
| `docker_engine`, `kube_api`, `transport` (`crates/test-support`) |
`integration` | Used only by `hcl_integration` and `helm_recovery`. |
| `docker_fixture` | `integration` | Tests `nemoclaw_e2e::http_fixture`,
which the system tests and the `tofu test` fixtures use. |
| `fabric_bridge`, `tls`, `web_search` | `integration` | Test the
providers against the fake OpenShell gateway
(`nemoclaw_e2e::openshell::Fixture`), the system tests' gateway. They
use no real infrastructure. |
| `agent_compatibility` | `integration` | Tests `image_runtime` binding
and policy, which the system tests use through `image_runtime::engine`
and `metadata_bundle`. |
| `openshell_contract_fixtures` | `integration` | Keeps the
`openshell-provider` contract fixtures in sync with the SDK; it serves
the lifecycle layer, not the live suites. |
| `cache_provider`, `docker_provider_proxy`, `docker_registry`,
`dummy_agent`, `interfaces_live`, `managed_gateway` | `e2e` |
`live-docker` profile. |
| `kubernetes_live` (+ `kubernetes_oidc`, `kubernetes_registry`,
`kubernetes_requests`), `kubernetes_chart` | `e2e` | `live-kind`
profile. `kubernetes_requests` and `kubernetes_registry` hold
non-ignored checks of `kubernetes_live`'s helpers, and are its `#[path]`
submodules. |
| `hcl_live`, `fabric_live`, `model_live`, `hosted_parity`, `spark`,
`managed`, `existing_ollama`, `managed_ollama`, `remote_models`,
`shared_service`, `service_images` | `e2e` | Opt-in live tests. The
non-ignored checks in `fabric_live`, `hosted_parity`, and
`interfaces_live` test those modules' own helpers and stay with them. |
| `pseudo_terminal` | `e2e` | Helper for `interfaces_live`; its
non-ignored tests check that helper. |
| `registry_fixture` | `e2e` | Helper for `docker_registry` and
`kubernetes_registry`. |

Every `#[cfg(...)]` gate is unchanged: a script compared each of the 41
module declarations in the old `tests/main.rs` with the new `main.rs`
files and found each declared exactly once with the same gate.

Crate-root `fixtures/` (hosted parity) stays where it is. Moving it
would also change `tools/e2e/brev-v1-guest.sh` and `live-tests.md` and
gain nothing for this split.

### Consumers updated

- `crates/nemoclaw-e2e/Cargo.toml`: `[[test]]` targets `integration`
(`tests/integration/main.rs`) and `e2e` (`tests/e2e/main.rs`); the
comment explains the split.
- Source paths: `include_str!`/`include_bytes!` gain one `../`.
`#[path]` attributes to `crates/test-support` are updated. The `tofu
test` runner reads `CARGO_MANIFEST_DIR/cases` and
`CARGO_MANIFEST_DIR/tests/integration/hcl`. `hcl_live` reads
`cases/<case>.yaml` and runs OpenTofu in `tests/e2e/hcl`, still relative
to the crate directory that the workflow uses as its working directory.
Paths inside the HCL harness are unchanged, because the integration root
moved as one directory.
- `every_scenario_test_names_a_case` reads `tests/e2e/hcl/tests` and
`tests/integration/hcl/tests` and looks up each name in `cases/`. It is
still a non-ignored test.
- `.config/nextest.toml`: `lifecycle` selects `package(nemoclaw-e2e) &
binary(=integration)` whole. `live-docker` and `live-kind` keep their
module filters, now on `binary(=e2e)`. The `hcl-integration` test group
and its `max-threads = 1` limit are unchanged.
`.config/test-budgets.yaml` names no `nemoclaw-e2e` binary, so it is
unchanged.
- `.github/workflows/hcl-e2e.yml`: builds and copies the `e2e`
executable, runs `candidate/e2e hcl_live::case`, and pins images in
`crates/nemoclaw-e2e/cases/`. The working directory stays
`crates/nemoclaw-e2e`.
- `cargo ci archive` derives its binaries from the profiles, so on Linux
it now archives `nemoclaw-e2e::e2e` for the live jobs; no code change
was needed. No determinator rule or `tools/` script names the moved
paths. `brev.yml` and `brev-v1-guest.sh` use only the unchanged `brev`
binary and crate-root `fixtures/`.
- Docs: `testing.md` (layer table, unit, system, and live text),
`integration-tests.md` (`tofu test` paths and the system-test binary),
`live-tests.md` (every `nemoclaw-e2e` command now names `--test e2e`,
plus the `cache_provider.tf` link), and links in `docs/provider.md`,
`docs/security.md`, `docs/design/fabric-management.md`, and
`examples/hcl/travel-team/README.md`. The remaining `--test integration`
commands for `nemoclaw-e2e`, including the one in
`.agents/skills/add-fabric-harness/SKILL.md`, run modules that are in
`integration`.

### Not moved cleanly

- `tests/main.rs` was rewritten as two new files, so Git records it as
deleted and `tests/integration/main.rs` and `tests/e2e/main.rs` as
added; `git log --follow` does not connect them. Every other file is a
rename.
- `tests/e2e/fixtures/gateway_readiness.tf` had no consumer before this
PR and still has none. It moved with `tests/fixtures`; this PR does not
decide whether to remove it.
- `hcl_live::probe`'s `#[ignore]` reason names its caller's path, so it
now reads `tests/e2e/hcl/verifier`. Two include lines also changed
wrapping after `cargo fmt`.

## Validation

On darwin_arm64 at `a98fc08603`:

- **Test lists.** I ran `cargo nextest list --workspace --all-targets
--profile P --run-ignored only` for `lifecycle`, `live-docker`, and
`live-kind`, and the `ci` profile's non-ignored list, before the move
(`origin/v1` at `24b35280fb`) and after it. After removing the
`nemoclaw-e2e::integration`/`nemoclaw-e2e::e2e` binary ID, each pair of
sets is identical, and no test changed ignored state:

  | Profile | Before | After | `nemoclaw-e2e` after |
  |---|---|---|---|
  | `lifecycle` | 162 | 162 | 62 in `integration` |
  | `live-docker` | 8 | 8 | 4 in `e2e` |
  | `live-kind` | 7 | 7 | 7 in `e2e` |
| `ci` (non-ignored) | 1748 | 1748 | 14 `integration`, 12 `e2e`, 2
`brev`, 9 lib |
| All `nemoclaw-e2e` tests | 116 | 116 | 76 `integration`, 28 `e2e`, 3
`brev`, 9 lib |

These lists cover macOS only. The Linux-only modules (`docker_registry`,
`existing_ollama`, `managed_ollama`, `remote_models`, `service_images`,
`shared_service`) are covered by the module-declaration comparison above
and by CI's Linux jobs.
- `cargo ci --base origin/v1` passed all selected steps (tools, fmt,
clippy, build, test, schema, bundle, lifecycle) in 466 s. Test: 1748
passed. Lifecycle: 162 passed, the same count as the baseline list,
including all four `hcl_integration::scenarios_in_shard_*` tests.
- `cargo nextest run -p nemoclaw-e2e --test integration --test e2e
--profile ci`: 26 passed.
- `cargo run -p nemoclaw-build -- fern check`: 0 errors (Node 25.9.0
locally; CI uses 24.22.1).
- `git log --follow` works on moved files, for example
`tests/integration/tofu_test/mod.rs` (through #13849) and
`cases/docker-openclaw-nvidia.yaml` (through #13723).

`CI / Bundle` on `a98fc08603` passed every job:

- Lifecycle: 162 tests on linux_amd64, linux_arm64, and darwin_arm64
(two partitions of 81 each), and 138 on windows_amd64 (three partitions
of 46), which omits the Unix-only modules.
- `Live / Docker` ran the `e2e` binary's live-docker tests on
linux_amd64 and linux_arm64: 7 tests, then one in each of the three
gateway runs, all passed.
- `Live / Kind` ran the `e2e` binary's 7 live-kind tests on linux_amd64
and linux_arm64, all passed.

Merging `origin/v1` at `c17761c8fe` (merge commit `84cf54f5e9`) brought
in #14064 and #14080. Git applied #14064's change to
`tests/hcl_integration/fixtures.rs` through the rename, and the merged
`tests/integration/tofu_test/fixtures.rs` is identical to v1's file.
After the merge:

- The `nemoclaw-e2e` test lists for every profile are unchanged from
`a98fc08603`. The other changes, all from #14064, are in the provider
`contract` binaries: `lifecycle` now lists 123 tests.
- `cargo ci --base origin/v1` passed in 251 s: test 1748 passed,
lifecycle 123 passed.
- `CI / Bundle` on `84cf54f5e9` passed. The first `linux_amd64 / Live /
Kind` attempt ran all 7 tests and passed them, but took 304 s against
the 270 s budget in `.config/test-budgets.yaml`, so the job failed. Two
`kubernetes_live` tests took about 197 s each, against the 150 s
per-test limit. The rerun took 234 s and stayed within budget. The `e2e`
binary's code is the same as at `a98fc08603`, where this job took 231 s.

No live suite ran locally: Docker was not running.
After merge, dispatch `Live / HCL` (`hcl-e2e.yml`). It is manual-only,
and its executable name, case path, and OpenTofu directory changed.
sandl99 added a commit that referenced this pull request Nov 2, 2026
Resolve the squashed #14088 against this branch's earlier merge of its unsquashed branch: keep this branch's tests/e2e/hcl and tests/e2e/rust layout and take v1's other changes, including #14064 and #14080.
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance provider: ollama Ollama local model provider behavior labels Nov 2, 2026
@wscurran wscurran added the provider: vllm vLLM local or hosted provider behavior label Nov 2, 2026
cv pushed a commit that referenced this pull request Nov 3, 2026
## Failure

The v1 system tests repeated the same deployment flows in many Rust
scenarios. Graph outcomes such as registrations, bindings, policy, agent
configuration, isolation, and unchanged reconciliation were checked
through the SDK lifecycle, often with export, reapply, and destroy
repeated at the end of each test. Several assertions froze counts or
authored defaults that did not identify the behavior under test. The
`tofu test` integration layer from #13849 already compiled shared
documents against the same fixtures, but only covered eight documents
and could not apply examples or authored HCL.

Resolves #14060. Pull requests into `v1` don't close issues; close
#14060 after merge.

## Decision

Move graph outcomes into `tofu test` scenarios that reuse the existing
runner, fixtures, harness, and `observed` module, and keep Rust only for
what OpenTofu's test framework cannot observe.

**Runner and fixtures**

- A test file names the modules it applies: `./cases/<name>` (shared
catalog), `./examples/<path>` for an example document compiled
unchanged, or `./examples/<path>` for an authored HCL directory copied
with the bundle's NVIDIA provider versions pinned.
- Fixtures can declare the models the upstream lists, a sandbox creation
or deletion delay, and a one-time gateway change (stop one agent
runtime, change an agent's model inside its sandbox, or forget
registrations). Observations add gateway effects, the most sandboxes
created at once, and current sandbox IDs and registration names. The
teardown check names what remains.
- The harness adds `gateway_change`, `sandbox_create_delay_ms`, and
`baseline`, and outputs `gateway` and `baseline` so a later run can
compare with an earlier one.
- The runner now builds on every platform. Windows reaches the fixture
engine through the `ssh` relay that the lifecycle step puts on `PATH`,
and skips scenarios with a managed Docker gateway, recording them as
skipped in the CI summary.

**New scenarios**

| Scenario | Replaces | Owns |
|---|---|---|
| `kubernetes-external-three-agents`
(`examples/kubernetes/external-gateway.yaml` unchanged) |
`kubernetes_agents`, Fabric harness tests, stopped runtime, missing
registration, concurrent sandboxes, agent removal | Shared registration
and credential reference, per-agent configuration, concurrent creation,
unchanged apply with no gateway effects or agent starts, restart in the
same sandbox, re-registration without sandbox changes, one sandbox's
replacement leaving the others |
| `external-multiple-providers` (+ `-writer` case) |
`multiple_providers` | Provider union per sandbox, two deployments with
separate workspaces and owners, reapplying one after the other changes
nothing |
| `kubernetes-search-scopes` | Registration count in
`export_observations::mixed_search_export…` | One inference and one web
search registration per harness, each with the credential its
deployment, sandbox, or agent scope names; the unused integration is not
registered |
| `kubernetes-slow-sandbox-delete` |
`deployment::destroy_waits_for_graceful_sandbox_stop_without_retrying` |
A 31 s sandbox deletion is requested once, and the replacement follows |
| `travel` | `travel_example` | Authored example with Docker mocked:
readiness, registration, policy, agent configuration, unchanged apply |
| `travel-team` | `travel_team_example` | Per-role attachments, grants,
toolsets, and a hosted-model change replacing only the scheduler's and
buyer's sandboxes |

**Rust that remains** covers SDK and CLI behavior: CLI output, saved
state and intent, export, interrupted and cancelled operations, saved
plans, and provider errors, which `expect_failures` cannot expect. The
six export/reapply tests become one test that applies a document with
integrations, an authored inference API, native settings, grants,
exposures, and a tool limit, then checks each kind of observed drift
with one table. `remote_service` and `helm_recovery` stay as they were,
except two Ollama rows that repeat the vLLM storage and post-pull image
checks.

**Builds on #14088** (merged), which split `nemoclaw-e2e` into the
`integration` and `e2e` binaries. This PR then organizes
`crates/nemoclaw-e2e/tests/integration` by format:

```
tests/integration/
├── main.rs
├── hcl/              # tofu test scenarios: main.tf, harness/, modules/, tests/
├── tofu_test/        # their runner, the hcl_integration module
├── rust/    # Rust tests for what tofu test cannot express
│   ├── deployment.rs, export_observations.rs, fabric_deployment.rs
│   ├── multi_agent.rs, remote_service.rs
│   └── helm_recovery.rs, helm_recovery/
└── agent_compatibility.rs, docker_fixture.rs, fabric_bridge.rs,
    openshell_contract_fixtures.rs, tls.rs, web_search.rs   # offline checks, run with the unit tests
```

`main.rs` declares each `rust/` file with `#[path]`, so module and test
names do not change. Migrating the failure cases further is a later
step.

**Assertions removed or consolidated:** exact effect and change counts,
repeated export/reapply tails, the text row of the startup-failure test
(renderer tests own it), authored defaults such as `max_turns` and
temperature, the OpenShift duplicate of the Kubernetes example, and the
Service-host policy check that SDK `kubernetes_inference` tests cover.

**OpenTofu 1.12 limits found and documented** in
`docs/contributing/integration-tests.md`: assertions cannot reference
runs, only the latest applying run's outputs per module are kept,
cleanup silently skips the destroy when the last run's variables
reference a dropped run, and a JSON array never equals a list.

## Validation

- `cargo ci` (fmt, clippy, build, test, schema, bundle, lifecycle)
passed on darwin_arm64.
- `hcl_integration`: 14 scenarios pass in 4 shards. With the 31 s
deletion, the slowest local shard took 52 s; the others took 18 to 27 s.
- Retained Rust boundary tests in `deployment`, `export_observations`,
`fabric_deployment`, and `multi_agent`: 19 pass.
- Each new scenario detected a deliberate, reverted regression: a
timestamp-triggered replacement on unchanged apply, two deployments with
one owner, an extra researcher change during the hosted-model change, a
second replaced sandbox, and teardown without `destroy = true`.
`every_scenario_test_names_its_inputs` failed on a missing example.
- Same machine and bundle, `cargo ci lifecycle` on `24b35280fb` versus
this branch: 162 → 140 tests, 151.8 s → 112.7 s wall, 1204 s → 894 s
summed; the `nemoclaw-e2e` system tests went from 62 tests and 1046 s to
40 tests and 742 s. `hcl_integration` grew from 8 scenarios in 52 s to
12 in 67 s.
- Net: Rust −1813 lines, HCL +801, case YAML +102.
- `kubernetes-external-three-agents` also owns two checks moved out of
`export_observations`: no sandbox runs an inference or runtime probe,
and a model changed inside another sandbox is not drift.
- `kubernetes-search-scopes` detected a deliberate, reverted regression:
the Pi agent using the deployment's Tavily search instead of its own.
- After merging #14088 and moving the Rust tests to `rust/`: `cargo ci`
passed every step, including test (1748 tests), bundle, and lifecycle
(140 tests). After moving four more checks into HCL, `cargo ci
lifecycle` passed 139 tests. After merging `v1` with #14088 and #14064,
whose shared fixture state now holds declarations and observations,
`cargo ci` passed every step: 1748 tests, bundle, and lifecycle (100
tests; the slowest scenario shard took 47 s). The `integration` binary
lists 40 ignored tests: the 36 failure cases and the 4 scenario shards.

Deferred to CI: Linux and Windows lifecycle. The Windows path of the
runner is untested locally; no Windows target is installed here.

---------

Signed-off-by: San Dang <[email protected]>
cv pushed a commit that referenced this pull request Nov 3, 2026
## Failure

v1 live coverage was spread across separate Rust lifecycles that each
repeated the same apply, invoke, reapply, and destroy code with their
own state readers: `brev.rs` (its own test executable),
`fabric_live.rs`, `model_live.rs`, `dummy_agent.rs`, and
`hosted_parity`'s live module. Only Brev and the dummy test ran in CI;
the others were manual. The HCL E2E pattern from #13723 covered two
cases, and the CLI applied each deployment before `tofu test` started.

## Decision

Part of #14061 (parent #13933). Builds on #14088, now merged into `v1`;
this branch also contains #14090, which was merged into it.

Each scenario is a `cases/<case>.yaml` document and a
`tests/e2e/hcl/tests/<case>.tftest.hcl` with four runs:

1. `apply` through the bundled CLI.
2. A real reply from the recorded runtime after the apply process
exited, with an exact answer when the case names one.
3. A `plan` with no changes.
4. `destroy` that retains only the case's persistent storage.

| Case | Runner | Replaces |
|---|---|---|
| `docker-openclaw-nvidia` | Live / HCL | The existing reply check, now
also applying, planning, and destroying in HCL |
| `docker-openclaw-v0-parity` (moved from
`fixtures/openclaw-nvidia-hosted/v1.yaml`) | Live / HCL, Live / Brev |
`brev.rs`, `fabric_live.rs`, `hosted_parity` OpenClaw live |
| `docker-hermes-v0-parity` (moved from
`fixtures/hermes-nvidia-hosted/v1.yaml`) | Live / HCL | `hosted_parity`
Hermes live |
| `docker-openclaw-vllm` | Live / HCL GPU runner | `model_live.rs` |
| `docker-dummy` | `cargo ci live-docker` | `dummy_agent.rs` |
| `docker-openclaw-hermes-vllm` (#14090) | Live / HCL GPU runner |
`spark` plan-and-apply test, `shared_service` |
| `docker-openclaw-hermes-ollama` (#14090) | Live / HCL GPU runner |
`managed_ollama`, `existing_ollama` |

Layout of the `e2e` test tree:

- `tests/e2e/hcl/`: the HCL E2E scenarios and their modules, run by
`hcl_live::case`.
- `tests/e2e/rust/`: live tests not yet migrated, with their fixtures
and helpers, moved unchanged except for relative include paths. Module
names are unchanged, so test names and the `live-docker` and `live-kind`
filters still match.
- `hcl_live.rs` and `hosted_parity.rs` stay at the top: the HCL runner,
and the deterministic v0 comparisons of the parity cases.

Components:

- `tests/e2e/hcl/cli` runs one bundled `nemoclaw` command (`plan`,
`apply`, `destroy`) and returns its exit status, error, and JSON result.
`hcl_live::case` no longer applies.
- `tests/e2e/hcl/verifier` gains an optional exact `answer`. The probe
writes reply text to the run's private `work` directory; published
reports still hold outcomes only.
- `cargo ci live-docker` binds the dummy case's template to a fresh UID,
port, subnet, and image (`bind_case`) and passes the copy as
`NEMOCLAW_HCL_DOCUMENT`. Its labelled-resource cleanup is unchanged.
- Live / HCL builds the Hermes image and binds
`nc-fabric-hermes@sha256:0…`. Brev runs the `e2e` executable's
`hcl_live::case` (the separate `brev` test target is removed), then
`nemoclaw destroy`, and uploads the reports, destroy receipt, and
fresh-host checks; deleting the VM remains the required cleanup.
- `hosted_parity`'s deterministic v0 comparisons read the moved case
documents.

Removed checks that were not on the successful path, and their owners:

| Removed check | Owner |
|---|---|
| Export equals the document; reapplying it changes nothing | The
SDK/CLI export test #14063 keeps |
| Runtime and resource identities unchanged by reapply; restart of a
stopped agent runtime in the same sandbox | #14063
`kubernetes-external-three-agents` |
| Exact created resources; plan matches apply; `plan --destroy` preview
| #14063 graph scenarios |
| Undeclared egress denied | Policy sent to OpenShell: HCL integration
`docker-openclaw-nvidia`. Enforcement is OpenShell's. |
| First plan leaves Docker unchanged | Proposed: #14064
`openshell/gateway` plan contract; not yet confirmed |
| vLLM manifest, storage reuse, `USR1` memory guard, recovery of the
stopped container | Proposed: #14064 `nemoclaw/runtime` and
`nemoclaw/storage`, and the vLLM supervisor tests; not yet confirmed for
the stopped-container recovery |
| Workspace file kept across reapply | Redundant with the unchanged plan
|
| Dummy: no sandbox objects after destroy | `cargo ci live-docker`
cleanup fails on leftovers |
| Dummy: derived image's executable in the sandbox | Dropped; the image
is still built and deployed |
| `fabric_live` against an external gateway | Was manual only; no CI
case before or after |

Not in this PR: `spark.rs`, `managed_gateway.rs`, `interfaces_live.rs`,
`cache_provider.rs`, `docker_registry.rs`, the Kind suite,
`service_images`, and the read-only SDK and provider live tests. Their
happy paths and failure owners are a follow-up under #14061.

OpenTofu 1.12.9 limits found here (also in #14063): assertions cannot
read `run.<name>`, and a run's outputs become unknown once a later run
applies the same module. The scenarios avoid both.

Net against `v1`, including #14090: +1,114/−2,583 across 63 files, many
of them renames into `tests/e2e/rust`. #14090 also deleted `managed.rs`
and `nemoclaw-sdk`'s `managed_live`, which only re-read an earlier run's
state.

## Validation

- After merging `v1` (the squashed #14088, #14064, and #14080): `cargo
ci fmt`, `cargo ci clippy`, and `cargo ci test` (1,746 tests) passed on
darwin_arm64. The merge keeps this branch's `tests/e2e/hcl` and
`tests/e2e/rust` layout; every other file matches `v1`.

- After merging #14088's branch and adding `tests/e2e/rust`: `cargo ci
fmt`, `cargo ci clippy`, and `cargo ci test` (1,746 tests) passed on
darwin_arm64. The Linux-only modules (`docker_registry`,
`service_images`, and the Ollama tests) don't compile on macOS; I
checked that each of their moved include paths names an existing file,
and Linux CI compiles them. One run hit
`release_assessment::scanner::tests::subprocess_failures_hide_stderr_and_timeouts_reap_the_owned_process`
under load; it passed three isolated reruns and the next full run.
- `hcl_live::case`, `hosted_parity::`,
`hcl_integration::every_scenario_test_names_a_case`,
`live_docker::tests::the_dummy_case_binds_its_identity_gateway_and_image`,
and the two `ci_lifecycle::live_docker_*` tests pass.
- Every scenario passes under OpenTofu 1.12.9 with a fake `nemoclaw` and
probe. A wrong answer and a failed apply each fail the expected run.
- `tofu fmt -check`, `shellcheck` on the Brev scripts, and
`tools/ci/test_brev*.py` pass.
- Deferred to CI: `cargo ci live-docker` runs `docker-dummy` on this PR.
Not run: Live / HCL (four cases, including the GPU lane) and Live / Brev
need a push to `run-hcl-e2e/**` or `run-brev-v1-e2e/**`. Run them before
merge; the deleted Rust live tests have no live replacement evidence
until they pass. `cargo ci lifecycle` was not run locally.
cv pushed a commit that referenced this pull request Nov 3, 2026
<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION &
AFFILIATES. All rights reserved. -->
<!-- SPDX-License-Identifier: Apache-2.0 -->

## Failure

`cache_provider`
(`standalone_hcl_recovers_cache_and_guards_credentials_without_sdk_orchestration`)
ran hand-written HCL that composed the Docker provider's `docker_volume`
and `docker_container` with `vllm_credential_storage` against the local
engine on every Live / Docker run. Most of its steps check Docker and
the Docker provider. Its NemoClaw-owned checks are covered by the
contract suite (#14064), SDK and runtime unit tests, and the
`docker-openclaw-hermes-vllm` HCL E2E scenario, except one: nothing
outside this live test showed that an applied `vllm_credential_storage`
plans no changes. The `tofu test` `reapply` run shows no second volume
is created, not that the plan was empty.

## Decision

Add that check to the contract suite, then delete the live test
(#14061).

- `failures/service_storage.rs`:
`missing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state`
now plans with `-detailed-exitcode` after its first apply, before the
faults.
- Delete `tests/e2e/rust/cache_provider.rs`,
`fixtures/cache_provider.tf`, its `main.rs` module and `live-docker`
selector, and the `NEMOCLAW_TEST_CACHE_ENGINE` /
`NEMOCLAW_TEST_CACHE_IMAGE` inputs (and the now-unused `ENGINE`
constant) in `live_docker.rs`. The agent image stays:
`NEMOCLAW_TEST_GATEWAY_SANDBOX_IMAGE` and the gateway documents use it.
- Delete `fixtures/gateway_readiness.tf`: nothing has referenced it
since #14082, which left the `fixtures/` directory with only these two
files.
- Docs: remove the live-tests section and its mention in the Docker Live
Suite paragraph; describe the new check in `integration-tests.md`.
`testing.md` doesn't name this test or its inputs, so it is unchanged.

| # | `cache_provider` step | Owner after deletion |
| --- | --- | --- |
| 1 | Apply creates the credential volume with its authored owner and
generation | `nemoclaw-provider` contract
`hcl/storage/tests/storage.tftest.hcl` runs `create` and `reapply`
(`retained_storage_keeps_its_identity`) |
| 2 | No-op plan after apply | **Was uncovered; added.**
`failures/service_storage.rs`
`missing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state`
(`plan -detailed-exitcode`). On a real volume:
`tests/e2e/hcl/tests/docker-openclaw-hermes-vllm.tftest.hcl` run
`unchanged_plan` (`output.changes == {}`; the SDK's `check_plan` lists
every non-no-op resource and fails if a required one is missing). That
scenario runs only on Live / HCL dispatch. |
| 3 | Container replaced (`revision=replaced`), same key | Container
replacement: Docker provider, dropped. Storage not recreated when
compute changes: `nemoclaw-sdk`
`deployment::tests::disposable_docker_compute_reconciles_while_durable_storage_does_not_recreate`.
Key bytes kept and never regenerated for an initialized volume:
`nemoclaw-runtime`
`vllm::runtime::authentication::tests::credential_survives_restart_and_missing_initialized_key_is_rejected`.
The live test's key was written by the fixture's Python, not by
NemoClaw, so it never exercised that code. |
| 4 | Rejected `fail_start`, recovery with the same key | Docker
provider (`must_run` start failure) and Docker volume persistence,
dropped |
| 5 | Teardown: container removed, auth volume kept | Container removal:
Docker provider, dropped. The fixture kept the volume by leaving it
declared, not through NemoClaw teardown. NemoClaw's retention:
`nemoclaw-sdk`
`services::installers::tests::inference_removal_retains_cache_and_requires_authenticated_storage`;
on a real volume, `docker-openclaw-hermes-vllm` run `destroy` (retains
`vllm_credential_storage.inference_qwen_auth`) |
| 6 | Re-apply after teardown, same key | Volume observed, not
recreated: `storage.tftest.hcl` run `reapply` (`creates == 3`). Key: the
runtime test in row 3 |
| 7 | Lost cache container and data volume rebuilt (`reconstructed`) |
`docker_volume` and `docker_container` recreation: Docker provider,
dropped |
| 8 | Missing auth volume: compute replacement refused, state unchanged,
no container |
`missing_foreign_or_substituted_storage_stops_plan_and_apply_without_changing_state`,
fault `missing`: plan and apply fail with `bound persistent storage is
absent; recreation forbidden`, state is byte-identical, and no volume is
created. Apply fails while refreshing, before it applies anything. The
SDK graph also orders the container after the storage:
`nemoclaw-sdk/tests/multiple_providers.rs`
`managed_services_have_independent_storage_credentials_and_dependencies`
asserts the vLLM container's `depends_on` contains
`vllm_credential_storage.inference_<name>_auth`. That edge matters
because the `/credentials` mount source is the literal `<name>-auth`,
not a reference. |
| 9 | Same-named, same-labelled replacement auth volume refused, state
unchanged, no container | Same test, fault `substituted` (same labels,
new creation time); `foreign` covers a different owner label |

Net: 9 files, +8 / −460 (−452).

## Validation

- Local, darwin_arm64: `cargo ci fmt`, `cargo ci clippy`, `cargo ci
test` (which includes the `ci_lifecycle::live_docker_*` fakes), `cargo
ci bundle`, and `cargo ci lifecycle` pass. The lifecycle JUnit report
shows the four `failures::service_storage::*` tests passing. The first
`cargo ci test` run failed once on
`release_assessment::scanner::tests::subprocess_failures_hide_stderr_and_timeouts_reap_the_owned_process`,
which passed 5 of 5 focused reruns with and without this change, and a
second run hit a transient `ENOSPC` while linking. The third run passed.
- The new plan check passes against the current provider; I did not make
it fail first, because it guards behavior that already exists.
- CI, Live / Docker (run 41592361767): both linux_amd64 and linux_arm64
pass without `cache_provider`. `### live-docker` wall time against the
360 s limit:

  | Platform | `v1` f1e436c (run 41572811552) | This PR | Change |
  | --- | --- | --- | --- |
| linux_amd64 | 9 tests, 270.7 s (`cache_provider` 16.1 s) | 8 tests,
249.1 s | −21.6 s |
| linux_arm64 | 9 tests, 229.0 s (`cache_provider` 13.3 s) | 8 tests,
206.8 s | −22.2 s |
cv added a commit that referenced this pull request Nov 4, 2026
…tion skills (#14187)

<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION &
AFFILIATES. All rights reserved. -->
<!-- SPDX-License-Identifier: Apache-2.0 -->

## Failure

Several agent skills give an agent contradictory instructions, and some
verify-skill steps can't run as written:

- **Test layer.** `create-verification-skill`, `verify-yaml-deployment`,
and `verify-fabric-boundary` say to turn a journey into a Rust live
test, while `write-tests` picks the layer and prefers `tofu test`
scenarios; `AGENTS.md` said tests are Rust only.
- **Without State** (`verify-yaml-deployment`) used `$owner_label`
without setting it, and an empty `--filter` matches every object on the
engine. It deleted the sandbox before checking ownership and stopped the
gateway by name, which the same skill forbids.
- **Cleanup** (`verify-yaml-deployment`) removed every UID-labelled
volume, including a managed model's download, before the line that says
keeping the model is the user's decision, and deleted the state
directory and bundle before checking that the removal finished, which
`docs/usage.md` says to keep until then.
- **Proven Pairs** (`verify-fabric-boundary`) lists completed runs,
which the same skill says are not passes.
- **Formal and journey verify skills share `verify-*`.**
`maintain-formal-verification-skill` read every `verify-*` skill, so it
picked up the two journey skills and its "none exists" branch could
never fire; `maintain-verification-skill` had the mirror problem.
- **An already-passing test** was kept as regression coverage by
`test-driven-development` even when `write-tests` found an existing test
that covers it.
- **Findings had no owner** in `verify-fabric-boundary`, though upstream
boundaries decide who must fix each one.
- **Two checks both run "first"** in the Initial phase (`skills.md` and
`mounted-extensions.md`).
- **The hook reconcile request** in `plugins.md` reused a nonce that its
own precondition requires to be absent.
- **The generated-skill search** in `skills.md` passed unescaped
parentheses to the sandbox's `sh -c`, a syntax error.
- **`add-fabric-harness`** told contributors to edit a fixture registry
that #14064 removed.
- **`dgx-spark.md`** said `sudo grep` is needed, which
`deploy-and-answer.md` says it isn't.

## Decision

This PR makes the edits that both reviewers of the three independent
skill reviews agreed on, with these choices:

- Each verify skill now routes an every-change journey to the layer
`write-tests` picks; `AGENTS.md` allows tests in Rust or as `tofu test`
scenarios.
- Without State sets `owner_label`, checks ownership (the workspace's
UID label and every container name) before deleting anything, and stops
containers by the UID label.
- Cleanup asks before removing a model the run downloaded, keeps the
state directory and bundle until both counts are 0, then removes them
and checks that the evidence still lists. What keeping the model means
for a run is #14181.
- `Proven Pairs` becomes `Completed Runs`, keeping every recorded row.
- The formal maintainer finds skills by what they do ("runs a model
checker, prover, or verifier against named code"), as upstream pstack
does at `4dd1d05`, so `NOTICE.md` drops the line recording the old
deviation. The journey maintainer only takes `verify-*` skills with
launch and drive sections and a feature map. No renames.
- `test-driven-development` keeps an already-passing test only when
`write-tests` found nothing that covers it.
- Each finding gets an **Owner** line that links [upstream
boundaries](https://github.com/NVIDIA/NemoClaw/blob/v1/docs/design/scope.md#upstream-boundaries).
- `mounted-native-tool-first-start` runs right after
`mounted-skill-first-start`; the reconcile step writes a fresh nonce
first; the `add-fabric-harness` fixture step only regenerates; the `sudo
grep` line is gone.

The live runs below found two more defects in the procedures this PR
edits, fixed in their own commits:

- **Without State:** OpenShell deletes a sandbox in the background and
refuses to delete a provider that a sandbox still uses, so the provider
delete failed. The procedure now waits, up to 120 seconds, for the
sandbox to leave `openshell sandbox list`.
- **Generated-skill search:** with the parentheses escaped the command
ran but found nothing, because the sandbox's filesystem policy makes `/`
unreadable. It now searches the policy's writable roots, `/sandbox`,
`/tmp`, and `/home/node`, the only places the agent can save a file.

Follow-ups, filed as `v1` issues:

- #14182: `verify-yaml-deployment` runs host Python and Node, which
`AGENTS.md` rules out.
- #14183: how `verify-fabric-boundary` counts upstream-owned gaps and
behavior NemoClaw rejects on purpose.
- #14180: the System vs Integration name for one test layer.
- #14181: what keeping a downloaded model means for a verify run.

Not changed here: the duplicated table header at
`docs/contributing/live-tests.md:90-92`; the column-0 `printf`
continuation lines in `skills.md`, which work but render oddly; and
`REPLACE_WITH_PROVIDER_NAME` in Without State against
`create-verification-skill`'s "no placeholders".

## Validation

Static checks, on the final commit:

- `git diff --check`: clean; the pre-commit whitespace hook passed on
each commit.
- `sh -n` under dash and bash: every changed shell block and the inner
`sh -c` scripts of the generated-skill search and the Without State wait
exit 0; the old search script exits 2 under both.
- Links: all 106 relative links and anchors in the 13 changed files
resolve, including both `#completed-runs` links; nothing else linked
`#proven-pairs`.
- The `checks.md` count pipeline still gives 136 for `hermes` and
`openclaw` and 131 for `deepagents-code`.
- No CI step reads these files: `.agents/**` and `AGENTS.md` mark
nothing changed.

Live runs on a DGX Spark (GB10, Docker direct), at `4abad36df3` plus the
fixes, with `hermes`. Inference was an operator-owned vLLM endpoint
serving `nemotron-3.5-super-vl`
(NVIDIA-Nemotron-3.5-Super-VL-120B-A12B-NVFP4 at `da5b2650a8`), so these
results bind to that model, not the target file's Nemotron 3 Super.
Evidence is on the Spark under
`~/nemoclaw-verify/dgx-spark-hermes/RUN/evidence`.

| Run | Procedure | Result |
|---|---|---|
| `20261104T100758Z` | `verify-yaml-deployment`: launch, doctor,
deploy-and-answer, edited Cleanup | Doctor passed; DA1 replied
`READY_OK`; DA2 found 0 key copies; destroy printed `DESTROYED`. Cleanup
listed only the gateway's container, volume, and network, so no model
removal applied. Both counts were 0 while the state directory and bundle
were still present; after that they were removed and the evidence
listed. Credential scan 0 and 0. |
| `20261104T101425Z` | Without State, state directory moved aside |
Destroy refused without state. `owner_label` was set; the workspace was
labeled with the run's UID and every container name started with
`$WORKSPACE`. **The provider delete failed** while the sandbox deletion
was pending. Stopping by label stopped only this run's gateway; the
removal left counts 0 and 0; no other container changed. |
| `20261104T101640Z` | Without State, with the wait fix | Same checks;
the wait exited 0, the provider delete succeeded, counts 0 and 0, no
other container changed. |
| `20261104T102153Z` | `verify-fabric-boundary`, Initial checks for the
edited steps, then teardown and cleanup | `mounted-skill-first-start`
was the first request; `mounted-native-tool-first-start` and
`mounted-plugin-first-start` ran right after it, before `inference`, and
are Failed without prompts because Hermes has no route to load mounted
extensions (F2). **The escaped search found nothing** (`/` unreadable);
the writable-roots search found the generated skill. The plugin
installer failed offline (F4), so `agent-plugin-reconcile` and the
fresh-nonce step were Not tested. `teardown` Passed; Cleanup counts 0
and 0; the caller volumes were removed. |

The fabric run was partial: 15 of 136 rows have outcomes (4 Passed, 7
Failed, 4 Not tested), so it is not a completed run and isn't added to
Completed Runs. Its findings use the new Owner line. The reconcile nonce
step (`plugins.md`) was not driven live: Hermes's `hermes plugins
install` downloads a Python runtime that the sandbox's isolated network
tier blocks, and widening the policy was out of scope. The Cleanup
question about a downloaded model was not exercised, because every run
used the external endpoint and downloaded no model.

The operator-owned endpoint
(`nemoclaw-persistent-nemotron-3.5-super-vl`, labeled
`org.nemoclaw.lifecycle=persistent`) kept running through every cleanup
and was not removed.
@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: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance provider: ollama Ollama local model provider behavior provider: vllm vLLM local or hosted provider behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants