Repository navigation
docs(skills): drive native agent interfaces in the verify skill - #14080
Merged
Merged
Conversation
Fabric's pinned adapters now serve OpenClaw's Control UI and Hermes's API server and dashboard (#14036, #14037), and apply prints how to forward each one and the command that reads its token. The verify skill still patched the OpenClaw adapter, read the token from the host's /proc with sudo, and said Hermes had no interfaces. - openclaw-dashboard: declare harness.settings.interfaces.dashboard with public_origins; read the token with the Token command apply prints; check sign-in on /control-ui-config.json through the exposure and the forward; no patched image, no /proc, no port_range. - hermes-interfaces (new): the API server and dashboard through the printed forwards, with the API token from its kept-state path. - deploy-and-answer: check error and runtime ID in the result, scan for the key recursively, and correct the model and runtime_unavailable gotchas. - export-reapply: export with --output, plan the export, check the runtime is unchanged and the Agent interfaces block matches. - exposure-change: keep existing exposures, expect the agent runtime's replacement, prove the old sandbox is gone, and read the new runtime ID before asking again. - Agent files carry the new YAML edits, gaps, and proof rows; the feature map gives the order. Found by the maintain-verification-skill pass; every feature was driven live for OpenClaw and Hermes on a DGX Spark at 24b3528.
Collaborator
Author
Authoring session — opening
|
Contributor
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.
cv
added a commit
that referenced
this pull request
Nov 2, 2026
The Fabric pin's OpenClaw adapter accepts only loopback browser origins and no longer takes `public_origins` (NVIDIA/NeMo-Fabric#573 leaves other origins for later). The verify skill from #14080 set it so a browser could sign in at the service exposure's URL; planning now rejects that field. The skill's YAML edits drop `public_origins`. The exposure keeps its curl checks (DB1-DB3), the forward's curl checks become DB4, and the browser sign-in and chat (DB5) use the forward. Signed-off-by: Carlos Villela <[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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failure
The
verify-yaml-deploymentskill had drifted fromv1. Fabric's pinned adapters now serve OpenClaw's Control UI and Hermes's API server and dashboard (#14036, #14037), and apply prints how to forward each one and the command that reads its token. The skill instead patched the OpenClaw adapter, read the gateway token from the host's/procwith sudo, setport_range, and said Hermes had no interfaces. Amaintain-verification-skillpass also found errors in the generic features. After an exposure change, the skill reused the old runtime ID, which fails withruntime_unavailable. Its edit step overwrote existing exposures, and the credential-leak scan broke when no key was set.Decision
harness.settings.interfaces.dashboardwithpublic_origins, read the token with theTokencommand apply prints, and check sign-in on/control-ui-config.jsonthrough the exposure and the printed forward. There's no patched image,/procread, orport_range.errorand the runtime ID in the result, and scan for the key recursively. The model-name gotcha now says it applies to an existing endpoint, not a managed service. Theruntime_unavailablegotcha now says to read the runtime ID again.--output, plan the export first, and check that the runtime is unchanged and the Agent interfaces block matches.Validation
24b35280fb.24b35280fbagainst an existing vLLM, for OpenClaw and Hermes.Tokencommand read the token./control-ui-config.jsonreturned 401, 401, and 200 through both the exposure and the forward./api/healthreported no sign-in.shandbash.cargo ci fmtandfern checkpass, andcargo ciselects no bundle, lifecycle, or live steps for this Markdown-only change.