Skip to content

fix(config): add an application container example and type its options - #14166

Merged
cv merged 2 commits into
v1from
test/12567-container-declaration
Nov 4, 2026
Merged

cv merged 2 commits into
v1from
test/12567-container-declaration

Conversation

@cv

@cv cv commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

Failure

#13093 added kind: container services, but #12567's acceptance criteria were not all met:

  • No committed example declared a container service; feat(services): share an explicit container base with managed runtimes #13093 removed its YAML fixtures.
  • No test exported and reapplied a container service, or compared it with the generated schema.
  • The schema typed command, readiness.path, and readiness.runtimeStatus as nullable, so the configuration reference listed them as "any JSON value".
    When the new example went through the onboarding journey, the journey asked for readiness.path as JSON, rejected /health, and offered no text for the service's environment variables.

Decision

  • Add examples/application-container.yaml: one OpenClaw agent and one application container on a managed local Docker gateway.
    Following the manual connection in the container contract, the application's own environment variables name the gateway address, workspace, sandbox, sandbox ID, and agent.
    The example's comments say to apply the agent first and then copy its sandbox ID.
    docs/usage.md links to the example.
    The existing example tests now cover it: schema, round trip, Fabric validity, OpenShell fixtures, export, onboarding, and authoring.
  • Add crates/nemoclaw-sdk/tests/application_container.rs:
    • The example's settings match the workspace derived from its UID, its sandbox and agent, and its gateway's network address, and they reach the compiled container unchanged.
    • The configuration rejects designs the contract rules out: environment reference objects, secrets, agentConnection, a connection descriptor, service placement, imagePullPolicy, files under /run/nemoclaw, and explicit nulls.
      The schema also rejects every one of them except the protected file path.
    • The configuration rejects a container service on an external, Podman, or Kubernetes gateway, while accepting each of those gateways without the service.
    • Through scripted OpenTofu, the test applies the service with arguments, files, limits, data, environment, readiness, and publication.
      Export returns the same document, which passes the generated schema, and an unchanged reapply produces no changes and keeps the intent.
      Export refuses when the container's binding is missing or its name changed.
      Docker containers are disposable, so export doesn't compare their specification; Docker reconciles drift on apply.
  • Type command, readiness.path, and readiness.runtimeStatus as omitted rather than null, following the existing port and publication fields.
    This regenerates the schema and configuration reference.
    An explicit null in these fields is now rejected.
  • Give onboarding text to /spec/services/*/environment/*, telling the user not to enter a credential there.
  • Fix two example test harnesses: the Fabric validity test lacked the container_service generation, and the export unit test assumed the first observation wasn't a disposable Docker object.

This PR doesn't meet every criterion. It is part of #12567.

Criteria left open:

  • "Selects ... its intended sandbox dependency" and "reject invalid references and cycles" conflict with the accepted contract, which has no sandbox dependency field; the application gets its sandbox and agent from literal environment values.
    This PR doesn't add a dependency field.
    Maintainers need to either drop these criteria from Declare application containers in the v1 deployment configuration #12567 or reopen the contract decision.

Gateway.config is also typed as nullable; this PR leaves it unchanged because it isn't part of the container service.

Validation

  • Tests written first and seen failing:
    • cargo ci failed nemoclaw-onboarding tui::tests::example_journeys::application_container (asked for readiness/path as JSON, then found no description for the environment variables) and nemoclaw-authoring deployment_journey::single_sandbox_examples_offer_existing_sdk_values_without_changing_them (example count).
    • The SDK refusal test failed on command: null before the schema change.
    • With the new example, reference_combinations::example_configurations_are_valid_fabric_configurations and deployment::export::tests::each_example_exports_its_applied_document_and_stops_on_drift failed until their harnesses were fixed.
  • The other new tests passed at once: they cover existing behavior.
  • cargo ci on Linux arm64: tools, fmt, clippy, build, test, schema, bundle, and lifecycle passed.
  • cargo run --locked -p nemoclaw-build -- fern check: 0 errors, using Node 25.9.0 rather than the pinned 24.22.1.
  • Not run locally: cargo ci live-docker. Nothing that runs in images or containers changed; the example and the schema typing only change what configuration is accepted. cargo ci reported that no image inputs changed.

cv added 2 commits November 3, 2026 19:37
Add examples/application-container.yaml, a kind: container service beside one
agent whose literal environment names its workspace, sandbox, agent, and gateway.
Test that the example compiles to those settings, that options outside the
container contract and gateways other than managed local Docker are refused,
and that export and unchanged reapply keep the service through the scripted
OpenTofu. Let the example export test skip disposable Docker observations when
it drops one.

Part of #12567.

Signed-off-by: Carlos Villela <[email protected]>
The onboarding journey could not carry the application container example: the
schema typed command, readiness.path, and readiness.runtimeStatus as nullable,
so the configuration reference and authoring offered them as arbitrary JSON,
and the journey had no text for a service's environment variables. Type these
fields as omitted rather than null, regenerate the schema and reference, and
describe service environment variables in the onboarding text.

Part of #12567.

Signed-off-by: Carlos Villela <[email protected]>
@cv

cv commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial pi 1.5.0 with the Pit TypeScript tool Install path in the injected system prompt; the session record has no version field
Skills recorded test-driven-development (complete read); nemoclaw-contributor-create-pr (complete read) Tool results in the session record to cutoff
Instruction files recorded AGENTS.md (injected; complete read); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and tool results to cutoff
Tool calls partial typescript: 123 Wrapper calls, including 2 failed; nested shell, git, and workspace calls inside the wrapper are not counted separately
Session window recorded 2026-11-04T02:08Z to 2026-11-04T02:51Z; 43 min Session start to cutoff, including idle time and one harness restart after an extension error
Compactions recorded 0 Complete record to cutoff; one model-requested summary of earlier turns and several elisions, no harness compaction
Models recorded azure/anthropic/claude-opus-5-5 One model selection; no changes
Reasoning levels recorded medium One thinking-level setting; no changes

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 695a28f into v1 Nov 4, 2026
56 checks passed
@cv
cv deleted the test/12567-container-declaration branch November 4, 2026 03:10
@wscurran wscurran added area: docs Documentation, examples, guides, or docs build area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression integration: openclaw OpenClaw integration behavior platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch labels Nov 4, 2026
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
cv added a commit that referenced this pull request Nov 11, 2026
Brings the platform guides under `docs/` in line with `v1` at
`637bdb6276`: they now name that revision and OpenShell 0.1.7, publish
the generated configuration reference instead of a stale snapshot,
restore guide text that the reorganization dropped, and correct what
they say about policy changes, OpenShell resource schemas, and
onboarding.

## Problem

The reorganization in #14195 pinned the guides to `86b8d94273` and still
describes that revision, 114 commits behind `v1`:

- The published "YAML Configuration Reference" is a hand-kept snapshot
of the generated reference at `86b8d94273`. It predates the typed
application container options (#14166), network middleware bindings, the
dropped Deep Agents Code harness, and the multi-GPU fields, and says
that `docs/reference/configuration.md` differs from it on three field
types.
- The guides name OpenShell 0.1.6 and link its `ac7f615` sources, while
`versions.json` pins 0.1.7 (`5d25211b`, #14245). #14245 left this for
the next refresh of the inspected revision.
- #14195 was written at `86b8d94273` and merged after #14186, #14132,
and #14166, so it overwrote their guide changes: the `agents` field with
each agent's runtime ID, the OIDC sign-in details for a managed
Kubernetes gateway, and the application container example.
- `docs/security/sandbox-network.md` and `docs/security/security.md` say
apply rejects a policy change that needs a new sandbox. Since #13375, a
changed sandbox specification, policy included, replaces the sandbox, as
the same page's recovery section and `docs/build-deploy/usage.md`
already say.
- `docs/references/provider.md` says the OpenShell resource schemas are
version 1; they're version 2 since #13157.
- `docs/references/cli.md` says onboarding needs a verified bundle to
read the target; since #12579 it reads the target directly, with no
bundle or OpenTofu.
- `docs/references/fabric-harnesses.md` says onboarding offers every
catalog harness; since #14233 it offers OpenClaw and Hermes, and keeps a
template's other harness as the suggestion.
- The troubleshooting table lacks the errors that #14141 and #14133
added for retained gateway storage owned by another state directory and
a missing kubeconfig context.

## Change

- **Revision:** `docs/README.md`, the architecture overview, the
container services page, and the first-deployment tutorial and its
prerequisites now name `637bdb6276`, with OpenShell 0.1.7 and `5d25211b`
from its `versions.json`. Links to NemoClaw sources at the old revision
become repository-relative links, and the two test fixtures they named
moved to `crates/nemoclaw-e2e/tests/integration/rust/`.
- **OpenShell links:** every OpenShell link in these pages moves from
`ac7f615` to `5d25211b`. The line ranges for the Docker, Podman, and
Kubernetes proxy settings in OpenShell's `configuration.mdx` are
recomputed for the new file; they cover the same blocks.
- **Field reference:** `fern/pages.json` publishes
`docs/reference/configuration.md`, which `cargo run -p nemoclaw-build --
schema` generates and CI checks, and
`docs/references/v1-configuration.md` is removed. Links to it, including
one in `docs/agents-inference/inference.md` and one in the user-guide
skill, point at the generated reference. Refreshing the snapshot instead
would keep a hand-copied file that goes stale with the next schema
change.
- **Restored from #14186:** the tutorial and the headless OpenClaw
example in `docs/agents-inference/agents.md` read the runtime ID from
`nemoclaw plan -o json` instead of `terraform.tfstate`;
`docs/references/cli.md` lists the `agents` field and the **Agents**
text; `docs/references/sdk.md` names `agents` in plan and apply results
(`OperationResult::agents`).
- **Restored from #14132:** the OIDC steps in
`docs/build-deploy/kubernetes.md` cite the manual run in #14131 and
describe the CLI's `http://127.0.0.1:<port>/callback` redirect and
`SSL_CERT_FILE` trust, and the matching row in
`docs/resources/limits.md` no longer says the steps never ran. OpenShell
0.1.7's `oidc_auth.rs` still builds that redirect.
- **Restored from #14166:** `docs/build-deploy/usage.md` links
`examples/application-container.yaml`.
- **Policy changes:** both security pages and the change table in
`usage.md` say a policy change replaces the sandbox, deleting its files
and conversations (except on mounted volumes), the wording of #14141's
CLI warning; `openshell_sandbox` has no mutable fields
(`crates/openshell-provider/src/lib.rs`).
- **Schema version:** `docs/references/provider.md` says version 2, as
`crates/openshell-provider/tests/schema.txt` records, and drops the
repeated sentence.
- **Onboarding:** `docs/references/cli.md` says onboarding reads the
target without a bundle (`nemoclaw_onboarding::author`) and that the
saved file holds only authored values, a sentence #13978 added to the
tutorial before #14195 replaced onboarding there with a copied example.
- **Onboarding harnesses and troubleshooting:** `fabric-harnesses.md`
names the harnesses onboarding offers and drops a past rehearsal list;
the troubleshooting table gains rows for the two errors above, with
their messages from `gateway_storage.rs` and `observation.rs`.
- **Smaller fixes:** `tls: terminate` and `passthrough` are rejected by
OpenShell 0.1.7 (its `l7/mod.rs` is unchanged from 0.1.6); OpenShell
0.1.7 still keeps GPU filesystem additions local to the workload
(`boundary_server.rs`); `interfaces.md` points to the prerequisites for
the tutorial's OpenShell version; `migration.md` links the onboarding
guide; the internal evidence pages record that this change removed the
snapshot; the prerequisites table no longer limits non-OpenClaw,
non-Deep Agents images to ARM64, which `docker-bake.hcl` and
`docs/build-deploy/build.md` contradict.

Checked against the code and left unchanged: the Kubernetes namespace
binding after #13756 (`operations.rs` binds an existing namespace by
UID), agent replacement rules (`fabric-provider/src/agent.rs`), state
paths and Fabric adapter pins in `docs/build-deploy/state.md`
(`f33fa19a`, as `versions.json`), the harness table and its examples,
CLI options against `args.rs`, SDK signatures and timeouts, provider
versions, the 32-sandbox and 32-provider limits, the multi-GPU limit
(#14384 is open, and `container.gpuDevices` still takes one entry), the
compatibility page's state-version error, and the threat model.

## Beyond CI

- The first-deployment tutorial hasn't been rerun at `637bdb6276`; its
commands were checked against the CLI parser, `examples/openclaw.yaml`,
and the result types.
- The OIDC `SSL_CERT_FILE` behavior was observed in #14131 with
OpenShell 0.1.6 and hasn't been rechecked with 0.1.7.
@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: docs Documentation, examples, guides, or docs build area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow area: security Security controls, permissions, secrets, or hardening bug-fix PR fixes a bug or regression integration: openclaw OpenClaw integration behavior platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants