Skip to content

feat(images): deploy the dummy agent through a full Docker lifecycle - #13036

Merged
cv merged 5 commits into
v1from
feat/deployable-dummy-agent
Oct 12, 2026
Merged

cv merged 5 commits into
v1from
feat/deployable-dummy-agent

Conversation

@cv

@cv cv commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

No CI test completes apply with 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.json is the dummy's descriptor. dummy_catalog.py publishes it in the installed-catalog form without importing Fabric, with the image's bridge capabilities and runtime binaries.
  • The catalog records the pinned Fabric revision as the adapter contract the descriptor follows; the planner currently requires that revision. FABRIC_REVISION and FABRIC_SHA256 move to global Dockerfile arguments so the dummy stage can record them.
  • cargo images build now labels every image, the dummy included, with a catalog. The dummy stays out of the production agents target and the bundled catalog.
  • The service-image tests no longer synthesize a dummy catalog.

Live test

  • dummy_agent::the_dummy_agent_completes_a_managed_docker_lifecycle deploys 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's reply setting; 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-images and live-docker build or load the dummy with the other live images, and live-docker writes the test's document. The test runs in the first of the four nextest commands.
  • The live-docker budget is unchanged. Its slowest recorded run was 255 s of 360 s, and the new test took 36 s locally.

Validation

  • RED: the live test failed at plan with "image runtime metadata is unavailable"; the image-labels and live-image wiring tests failed before their changes.
  • GREEN: the live test passed in 36 s on local Docker (Linux ARM64), and its run removed its owned resources.
  • The dummy image's 21 reference tests, cargo images qualify … --lifecycle dummy --require-ready, the image lint target, a planner test of the dummy descriptor, and cargo ci (1,378 tests and 127 lifecycle tests) pass.
  • cargo ci live-docker as a whole runs in this PR's CI, not locally.

Found, not changed: bindings() in fabric_live.rs and brev.rs converts the whole sandbox state into a Row, which holds only strings. The current openshell_sandbox state 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 exactly org.nemoclaw.dummy and rejects that adapter in any other image's catalog.
  • The live-image test's fake Docker answers each catalog script differently, so reading the wrong one for the dummy fails.
  • The dummy backend's settings table is the reference for the descriptor's schema types.
  • Archive loads remove the shared names of live images a step does not use; live-kind previously left the dummy and proxy images behind.
  • Catalog field docs say what the reference image records, and the live-test docs say how to find what a failed run leaves.

cv added 2 commits October 12, 2026 06:47
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.
@github-actions

Copy link
Copy Markdown
Contributor

cv added 3 commits October 12, 2026 13:05
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
cv merged commit 7f0cfa0 into v1 Oct 12, 2026
@cv
cv deleted the feat/deployable-dummy-agent branch October 12, 2026 21:30
@cv cv added the v1 NemoClaw v1 branch label Oct 12, 2026
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.
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance labels Oct 28, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e End-to-end tests, nightly failures, or validation infrastructure area: packaging Packages, images, registries, installers, or distribution chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants