Skip to content

test(e2e): migrate live happy paths to HCL E2E scenarios - #14082

Merged
cv merged 6 commits into
v1from
test/14061-hcl-live-migration
Nov 3, 2026
Merged

cv merged 6 commits into
v1from
test/14061-hcl-live-migration

Conversation

@sandl99

@sandl99 sandl99 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

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 refactor(e2e): separate integration and live end-to-end test trees #14088, test(contract): migrate provider contract scenarios to tofu test #14064, and docs(skills): drive native agent interfaces in the verify skill #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 refactor(e2e): separate integration and live end-to-end test trees #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.

Each live scenario now runs as an HCL E2E case: tofu test applies the
case through the bundled CLI, checks a real reply from the recorded
runtime, a plan without changes, and destroy with only persistent
storage retained. Live / HCL gains the two hosted parity cases, Brev runs
the OpenClaw parity case, and cargo ci live-docker runs the dummy case.

Delete the Rust lifecycles they replace: brev.rs and its test target,
fabric_live.rs, model_live.rs, dummy_agent.rs, and hosted_parity's live
module. Their failure, recovery, drift, and export checks belong to the
HCL integration and contract migrations (#14060, #14059).

Refs #14061
@sandl99

sandl99 commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Pi 1.2.0 (TUI) Session metadata and installed release; cutoff before publication
Skills recorded nemoclaw-contributor-implement-issue (complete read); nemoclaw-contributor-create-pr (complete read) Tool reads in the session record to cutoff
Instruction files partial AGENTS.md on main (injected); AGENTS.md on v1 (complete read); PULL_REQUEST_TEMPLATE.md (complete read); SESSION_REPORT_TEMPLATE.md (complete read) WRITING.md and E2E authoring guidance were read only in part
Tool calls partial typescript: 223 Wrapper calls to cutoff, including 8 failed results; nested shell and git calls inside the wrapper are not counted
Session window recorded 2026-11-02T05:51Z to 2026-11-02T10:25Z; 4 h 34 min First event to cutoff, including idle time
Compactions recorded 0 Complete record to cutoff; it has context elisions but no compaction
Models recorded claude-opus-5-5 Model change event; no later change
Reasoning levels recorded medium; high Thinking-level changes, in order

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Move nemoclaw-e2e's local-fixture tests to tests/integration (binary
integration) and its live tests to tests/e2e (binary e2e). The shared
NemoClaw documents move from hcl/cases to cases, the tofu test root to
tests/integration/hcl, its runner to tests/integration/tofu_test, and the
live HCL to tests/e2e/hcl. Module and test names are unchanged.

Related to #14060 and #14061.
The e2e binary now separates the HCL E2E scenarios in tests/e2e/hcl from
the Rust live tests not yet migrated to them, which move to tests/e2e/rust
with their fixtures and helpers. Module names stay the same, so test names
and profile filters do not change. Brev runs the e2e executable.

Refs #14061
@sandl99
sandl99 changed the base branch from v1 to refactor/e2e-split-test-trees November 2, 2026 13:03
#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
sandl99 requested a review from cv November 2, 2026 14:27
@sandl99 sandl99 added the v1 NemoClaw v1 branch label Nov 2, 2026
Base automatically changed from refactor/e2e-split-test-trees to v1 November 2, 2026 14:34
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: integrations Third-party service integration behavior area: providers Inference provider integrations and provider behavior 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: brev Affects Brev hosted development environments provider: nvidia NVIDIA inference endpoint, NIM, or NVIDIA provider behavior provider: ollama Ollama local model provider behavior provider: vllm vLLM local or hosted provider behavior labels Nov 2, 2026
@cv
cv merged commit 4392818 into v1 Nov 3, 2026
96 of 98 checks passed
@cv
cv deleted the test/14061-hcl-live-migration branch November 3, 2026 02:49
cv added 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

Part of #14061. Stacked on #14082.

`tests/e2e/rust/docker_registry.rs` ran in `cargo ci live-docker`
without deploying NemoClaw. It compiled a document with a listed
registry, wrote a one-resource OpenTofu graph around the Docker provider
block, and checked that the provider pulled from a run-owned registry
with the host's login, that an anonymous pull was refused, and that
state and output held no credential.

## Decision

Delete the live test and its `live-docker` selector, as the [follow-up
checklist](#14061 (comment))
proposed.

| Check | Owner after this PR |
|---|---|
| A listed registry becomes `registry_auth` on every Docker provider,
with an optional config file | `nemoclaw-sdk`
`compile::docker_providers_authenticate_to_listed_registries` (existing)
|
| The configuration holds no credential value: a `password` field is
rejected, and the graph names only addresses and config-file paths | The
same test (existing) |
| The provider pulls with the host's login and refuses an anonymous pull
| The Docker provider's behavior; no NemoClaw test |

The Kubernetes private-image test still uses `registry_fixture.rs`,
which stays.

I also checked the checklist's `managed_gateway` contract item; existing
tests already cover it, so it needs no code:

- A gateway port in use: `nemoclaw-provider` `discovery` reports the
gateway prerequisites `unavailable` with the `spec.gateway.endpoint`
reason.
- A subnet another network holds:
`planning_checks_subnet_conflicts_and_defers_absent_shared_networks` and
`planning_new_gateway_storage_refuses_a_subnet_another_network_holds`.
- A swapped key-encryption key:
`gateway_identity_includes_signing_key_and_persisted_encryption_key` and
`gateway_observation_preserves_identity_and_fails_closed_on_drift_or_partial_results`.

`managed_gateway.rs` stays until #14060 owns its port-change and
re-apply-after-destroy checks.

## Validation

- `cargo ci fmt`, `cargo ci clippy`, and `cargo ci test` (1,746 tests)
passed on darwin_arm64.
- `cargo ci live-docker` runs in this PR's CI without the registry test.

---------

Signed-off-by: Carlos Villela <[email protected]>
Co-authored-by: Carlos Villela <[email protected]>
cv added a commit that referenced this pull request Nov 3, 2026
…14097)

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

## Failure

Part of #14061. Stacked on #14082.

The Kubernetes happy path, agents answering on a managed gateway in
kind, lived in the Rust test
`kubernetes_live::on_openshift_three_agents_keep_separate_identities_run_as_the_namespace_uid_and_answer_after_each_reapply`.
Its sequence and assertions were Rust, and it also carried checks that
don't need a real cluster: identities and state across the unchanged
apply and the export's apply.

## Decision

Add the `kind-openshift-agents` HCL E2E case to `cargo ci live-kind`,
with the four runs the other cases use:

1. `cluster`: the new `tests/e2e/hcl/kind` module releases a local chart
through the bundled Helm provider. It creates the deployment's namespace
with OpenShift's UID-range annotations, as OpenShift prepares a project,
and the stub model the Rust flow used (the pinned development-issuer
image serving one streamed reply) in its own namespace. `tofu test`
uninstalls the release after the scenario, which deletes both
namespaces.
2. `apply` through the bundled CLI.
3. `reply`: each of the three agents answers from its recorded runtime
with the stub's reply.
4. `unchanged_plan`, then `destroy`, which must retain only
`openshell_kubernetes_storage.runtime`.

Supporting changes:

- `hcl_live::case` runs `tofu init` with the bundle's providers instead
of `tofu get`, so a case's own modules can use bundled providers such as
Helm.
- `hcl_live::probe` reaches a managed Kubernetes gateway through the
port-forward that `kubernetes_live::requests::gateway` already opens,
with the kubeconfig and context the case names.
- `cargo ci live-kind` binds the case template to its cluster context, a
fresh UID, gateway port, and namespace, and the agent image, and passes
the kubeconfig as `TF_VAR_kubeconfig`. The `live-kind` profile selects
`hcl_live::case`.

Deleted: the Rust three-agents test and `deploy_and_export`, which only
it used. The registry test keeps the shared flow.

| Removed check | Owner |
|---|---|
| Each agent answers from its first runtime with the stub's reply | This
case |
| Unchanged apply and the export's apply keep each agent's identities
and the deployment state; export reproduces the document | #14060
([follow-up
item](#14060 (comment)))
|
| Gateway and agent pods run as the namespace's first UID | Not kept.
Kind does not enforce OpenShift's constraints, and OpenShell applies the
range from the annotation; the gateway test still checks gateway pods
with `NEMOCLAW_TEST_KUBE_RUNTIME=openshift` on a real OpenShift cluster.
|

Net: +541/−172 across 13 files.

## Validation

- `cargo ci fmt`, `cargo ci clippy`, and `cargo ci test` (1,747 tests,
including the new binding test) passed on darwin_arm64.
- The scenario's apply, reply, plan, and destroy runs pass against a
fake CLI and probe with the pinned OpenTofu 1.12.9. The `kind` module
initializes from the bundle's Helm provider and renders its namespace,
image, and stub stream; I could not release it without a cluster.
- `Live / Kind` on this PR ran the case on real kind clusters at
80b89ab and passed on both architectures: `hcl_live::case` took 132.7
s on linux_amd64 and 138.1 s on linux_arm64, within the 150 s per-test
budget. The whole suite took 223.8 s and 244.2 s against its 270 s
budget; before this change, linux_amd64 runs took 254 s and the
three-agents Rust test exceeded 150 s.

---------

Signed-off-by: Carlos Villela <[email protected]>
Co-authored-by: Carlos Villela <[email protected]>
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 pushed a commit that referenced this pull request Nov 5, 2026
## Failure

`tests/e2e/rust/interfaces_live.rs` (806 lines, plus
`pseudo_terminal.rs`) checked OpenClaw's, Hermes's, and Deep Agents
Code's interfaces through a model stand-in in the test process, mixing
the successful path with refusal, recovery, and leak checks. #14061 item
1 moves the successful path to HCL E2E with real inference.

## Decision

Closes #14061 (parent #13933). Stacked on #14178 (#14176, #14174).
Follows the maintainer's item 1 decision.

- **New case `docker-openclaw-hermes-interfaces`** in `cargo ci
live-docker`, on a stub model (review by @cv): OpenClaw with its Control
UI on 18789; Hermes with its API server on 8642 and dashboard on 9119. A
new `tests/e2e/hcl/model` module runs the stub with the bundled Docker
provider: the pinned `nginx-unprivileged` image on the host network at
the case's model port, listing one model, answering every chat
completion with one reply (streamed when asked), and refusing any
request without the run's key.
- **New `tests/e2e/hcl/interface` module and `hcl_live::interface`
probe**: per request, read the reported token with `openshell sandbox
exec`, forward the port with `openshell forward service`, send one
request with the token as a Bearer credential. Reports hold status
codes; tokens and bodies stay in the private `work` directory; the
module outputs only failing target names.
- **Scenario:** apply must report the three interfaces with their ports,
sign-in, and token files; the Control UI page loads and its
configuration accepts the token; Hermes's API lists models and answers
with the stub's reply, which also shows NemoClaw sent the configured
key; Hermes's dashboard page loads with its session token; destroy keeps
only gateway storage.
- **`cargo ci live-docker`:** installs the pinned OpenShell CLI again,
binds the case (UID, gateway port and subnet, stub address, OpenClaw and
Hermes images, a fresh model key), and runs each HCL case
(`docker-dummy`, this one) as its own nextest command. Its wall limit is
raised to 480 s until a few runs measure the new total.
- **Deleted:** `interfaces_live.rs`, `pseudo_terminal.rs`,
`live::interfaces_document` and its test. `tests/e2e/rust/` is now
empty.

| Rust check | New owner |
|---|---|
| Apply reports ports, token paths, sign-in | Scenario `apply` assertion
|
| OpenClaw Control UI loads; configuration accepts the token |
`interfaces` run |
| Hermes API accepts its token and answers a chat completion |
`interfaces` run, with the stub's reply |
| Hermes dashboard page loads with its session token | `interfaces` run
|
| Missing or wrong tokens refused; dashboard killed; tokens kept out of
output and state; undeclared interface rejected at plan | #14060
integration items |
| Deep Agents Code terminal; Hermes browser chat (pseudo-terminal) |
Dropped (maintainer decision) |
| Every model request carried the configured key | The stub refuses any
request without the run's key |

**Fixes for the first Live / HCL run of every migrated case** (run
41804342269 and 41833590603; all other cases passed, including this PR's
new one):

- `hcl/cli` now reports the CLI's error message. With `--output json`,
the CLI writes a failed command's redacted message in its JSON on
standard output, so failed applies showed an empty message.
- `docker-hermes-v0-parity` (#14082) failed at plan: the current Hermes
adapter requires read access to `/opt/nemo-relay/plugins/switchyard`,
which the v0 export's explicit filesystem policy predates. The case
grants it, and `hosted_parity`'s projection adds it like the v1 images'
user and group.
- `docker-openclaw-hermes-vllm` (#14090) failed at Hermes's start:
Qwen3-4B's 40,960-token window is below the 64,000 tokens Hermes
requires, as `docs/inference.md` states. The case is now
`docker-openclaw-vllm-shared`, two OpenClaw agents sharing the model;
`docker-openclaw-hermes-ollama` keeps Hermes on a managed model.

Not done here: `cargo ci live-docker` still builds the Deep Agents Code
image, which nothing in that suite uses now; removing it touches the
live image publishing lists and is left as a follow-up.

Net: +393 / −1,270 across 17 files.

## Validation

- Local (macOS): `cargo ci fmt`, `cargo ci test` (1,753 tests), `cargo
clippy --all-targets --all-features` for `nemoclaw-e2e` and
`nemoclaw-build` pass.
- The scenario passes against a fake CLI and probe, and fails naming
`api_chat` when the reply is not `FOUR`.
- Live: the `docker-openclaw-hermes-interfaces` lane runs on a
`run-hcl-e2e/**` push of this branch.

Refs #14061
@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: integrations Third-party service integration behavior area: providers Inference provider integrations and provider behavior 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: brev Affects Brev hosted development environments provider: nvidia NVIDIA inference endpoint, NIM, or NVIDIA provider behavior 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