Repository navigation
feat(images): deploy the dummy agent through a full Docker lifecycle - #13036
Merged
Merged
Conversation
No CI test completed apply with a real image: production images report Fabric health as unsupported at the pinned revision, and the reference dummy, which reports health, published no catalog, so plan rejected it. The dummy now publishes a catalog with its one explicit descriptor, recorded against the pinned Fabric revision whose adapter contract it follows. It stays out of the production agents target and the bundled catalog. Live / Docker builds it with the other live images and runs a new test that deploys it through a managed Docker gateway: plan, a bundled-CLI apply with supported health, an invocation through the bridge, unchanged apply, export/reapply with the same runtime identity, and destroy retaining workspace and gateway storage. The service-image tests no longer synthesize a dummy catalog. Validation: the live test failed at plan with "image runtime metadata is unavailable" before the catalog and passed in 36 s on local Docker after it; the labels and live-image wiring tests failed first and now pass; the image's reference tests, qualification with --require-ready, image lint, and cargo ci (1378 tests, 127 lifecycle tests) pass.
The unit-tests stage discovers every image/fabric test outside the dummy image, where the catalog's installed files do not exist. Skip the test there; the reference-tests stage still runs it. Validation: reference-tests (21 tests) and unit-tests (79 tests, 2 skipped) pass locally.
Contributor
Address the adversarial review of this change: - labels() requires the dummy image to list exactly org.nemoclaw.dummy and rejects it in any other catalog; the catalog argument is no longer optional. The live-image test fake now answers each catalog script differently, so reading the wrong script for the dummy fails. - The dummy backend owns its settings table; the image test compares the descriptor's schema types with it. - The live document sets the dummy's reply setting; the test checks that the invocation returns it, derives the sandbox resource from the document, and checks the agent no longer answers after destroy. - Archive loads remove the shared names of live images the step does not use, so live-kind no longer leaves the dummy and proxy images behind. - The service-image fixture serves the image's labels unchanged and fails with a rebuild instruction for an image without a catalog. - Catalog field docs and the live-test docs say what the reference image records, how a deployment selects it, and what a failed run leaves. Validation: the labels, gateway-document, and archive-load tests failed before their changes and pass now; the live test passed locally in 37 s; reference-tests (21), unit-tests (79, 2 skipped), lint, qualification, the docs check, and cargo ci (1378 tests, 127 lifecycle tests) pass.
Merging v1 brought a GatewayInputs initializer from #12929 without the new settings field, which failed the merged build. It also added Remove Retained Resources for Docker engines; point the dummy test's manual cleanup at that procedure instead of #12640. Validation: cargo ci on the merged branch (1383 tests, 127 lifecycle) and the docs check pass.
cv
added a commit
that referenced
this pull request
Oct 12, 2026
Follow-up to #13036 from a fresh adversarial review of the merged change. ## Failure - The dummy image stored its Fabric contract pin in `/opt/nemoclaw/provenance.json`. The host reads that file to report which Fabric revision validated a configuration, so the dummy's `validate` began reporting `24f068c8…`, though `dummy_backend.py` did the validating and the dummy has no Fabric. - The lifecycle test's post-destroy check passed whether or not the sandbox was gone: destroy also removes the gateway, so contacting the agent fails either way. - After a failed manual run, the documented UID-label cleanup missed the sandbox's objects, and the test had already deleted the state that `nemoclaw destroy` needs. - Archive loads removed every `nc-live-images:*` name, including names another worktree's `cargo ci live-images` build on the same Docker daemon might hold. ## Decision - The dummy writes its pin to `contract.json`, which only `dummy_catalog.py` reads; `validate` reports a null Fabric revision again. - The live test asserts Docker holds none of the gateway's sandbox containers or volumes after destroy and still holds the retained storage. It also checks that plan defers the sandbox and that the reapply succeeds, and it keeps its state directory when it fails, printing the path for `nemoclaw destroy --state-dir`. - Archive loads remove only the platform's archive names that the step does not use. - Smaller changes: invocation input goes through `OpenShell::exec_input` instead of a `sh -c` pipe; `GatewayInputs.settings` is a JSON map; the descriptor's `runner.module` names the installed `backend`; the dummy catalog test runs whenever the `reference-tests` stage sets `NEMOCLAW_REFERENCE_TESTS=1`, so a missing installed file fails instead of skipping. No action on the reviewer's note that production images copy the dummy's files under `/opt/nemoclaw/source/local/`; every production image already copies all of `image/fabric/` by design. ## Validation - The null-revision test (`test_reference.py`) and the archive-name test (`ci_lifecycle.rs`) failed before their fixes and pass now. - The live dummy test passes locally in 38.8 s with the new assertions; a deliberately failing run kept and printed its state directory. - `cargo ci` passes (1,384 tests, 127 lifecycle), as do the image lint, `reference-tests` (21 tests), `unit-tests` (79, 2 skipped), `cargo images qualify --require-ready`, and the docs check.
cv
added a commit
that referenced
this pull request
Oct 13, 2026
#13036 made the reference dummy image deployable: it reports health without Fabric, so apply completes with it. The Fabric health section still said every bridge returns unsupported at the pinned Fabric. Limit that sentence to production adapter images, and state that the dummy runs no agent and does not establish a production adapter's health. Validation: `cargo run --locked -p nemoclaw-build -- fern check` reports no errors.
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.
No CI test completes
applywith a real image. Production images report Fabric health as unsupported at the pinned revision (#13031), so every real-agent apply fails at readiness. The reference dummy reports health, but it published no catalog, so plan rejected it with "image runtime metadata is unavailable".This makes the dummy deployable and adds a full-lifecycle test with it to
Live / Docker, so NemoClaw's side of the readiness path is tested while Fabric's health API is in progress. It does not qualify a production adapter's health.Dummy catalog
image/fabric/dummy.fabric-adapter.jsonis the dummy's descriptor.dummy_catalog.pypublishes it in the installed-catalog form without importing Fabric, with the image's bridge capabilities and runtime binaries.FABRIC_REVISIONandFABRIC_SHA256move to global Dockerfile arguments so the dummy stage can record them.cargo images buildnow labels every image, the dummy included, with a catalog. The dummy stays out of the productionagentstarget and the bundled catalog.Live test
dummy_agent::the_dummy_agent_completes_a_managed_docker_lifecycledeploys the dummy through a managed Docker gateway and checks: plan; a bundled-CLI apply that exits 0 with supported health; an invocation that returns the document'sreplysetting; unchanged apply; export/reapply with the same runtime identity; and destroy retaining the workspace and gateway storage, after which the agent no longer answers.cargo ci live-imagesandlive-dockerbuild or load the dummy with the other live images, andlive-dockerwrites the test's document. The test runs in the first of the four nextest commands.live-dockerbudget is unchanged. Its slowest recorded run was 255 s of 360 s, and the new test took 36 s locally.Validation
cargo images qualify … --lifecycle dummy --require-ready, the image lint target, a planner test of the dummy descriptor, andcargo ci(1,378 tests and 127 lifecycle tests) pass.cargo ci live-dockeras a whole runs in this PR's CI, not locally.Found, not changed:
bindings()infabric_live.rsandbrev.rsconverts the whole sandbox state into aRow, which holds only strings. The currentopenshell_sandboxstate has list attributes, so those opt-in tests would fail there. The new test keeps only the string identity attributes.Review follow-ups (adversarial review with Claude Opus 5.5, no blocking defects)
labels()requires the dummy image to list exactlyorg.nemoclaw.dummyand rejects that adapter in any other image's catalog.live-kindpreviously left the dummy and proxy images behind.