Repository navigation
docs(examples): add a travel team of six agents written as plain HCL - #13393
Merged
Merged
Conversation
…is their providers A sandbox with attached providers runs in proxy mode, where OpenShell adds its known filesystem paths to the loaded policy. The policy check accepted those additions only when the sandbox had network rules of its own, so a sandbox whose only network access came from its providers was created but every later refresh reported an incomplete observation.
…s in openshell_web_search takes an optional sandbox_env naming the variable sandboxes see its key in, since harnesses differ: Hermes's Brave plugin reads BRAVE_SEARCH_API_KEY, not the default BRAVE_API_KEY. openshell_inference exports sandbox_env, the variable sandboxes see its key in, so agent configurations need not reproduce NemoClaw's naming. The fixture gateway now reports credential names with redacted values, as OpenShell does, instead of dropping them.
Four researchers on a local Ollama model with web search, a scheduler, and a buyer that books over MCP, each in its own OpenShell sandbox with its own model, credentials, toolsets, and grants, driven by one table of roles. An agent's configuration change replaces its sandbox. WALKTHROUGH.md explains the HCL, and a system test applies it unchanged against the bundle's providers.
This was referenced Oct 18, 2026
cv
added a commit
that referenced
this pull request
Oct 18, 2026
) Closes #13399. Part of #13394. Stacked on #13405. ## Failure The multi-agent travel team existed only as hand-written HCL (#13393). Expressing it in YAML exposed gaps that #13400, #13401, #13402, #13403 and #13405 closed, but there was no YAML version showing that the team now fits. ## Decision `examples/travel-team.yaml` declares the HCL example's six agents: - **Researchers:** a managed Ollama Nemotron Nano, web search with Hermes's key name (`sandboxEnv`), the `web` toolset, at temperature 0.2. - **Scheduler:** a hosted Nemotron Super at temperature 0.3, with the `delegation` toolset. - **Buyer:** - the hosted model at temperature 0; - the booking service as an `api` integration and an MCP server, with only its toolset; - a network grant limiting the service to setup, discovery, `get_quote` and `book_option`. - **All roles:** isolated sandboxes, Hermes's `custom` provider (reasoning off), and the HCL example's token and turn limits. The YAML has no templating, so instructions are written out per agent and shorter than the HCL's, and they describe each hand-off format instead of embedding the JSON Schemas. The HCL README links the YAML version and says when to use each. ## Validation - A new SDK test compiles the example and checks each sandbox against the HCL example's settings: Fabric model provider, temperature, token and turn limits, toolsets, instructions, attached registrations, and the buyer's tool-restricted grant. - `cargo ci` passes locally: 1552 unit tests and 153 lifecycle tests. - Not run against a live gateway; the HCL version ran on a DGX Spark in #13393.
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.
Stacked on #13392.
Failure
The only hand-written HCL example,
examples/hcl/travel, has a single agent. Nothing showed or tested how NemoClaw's providers compose for several agents with different harnesses, models, credentials and network policies. A live trial of such a team found problems that no single-agent example exercises: #13389, #13391 and #13392, and NVIDIA/NeMo-Fabric#433.Decision
examples/hcl/travel-teamadds a team of six agents as plain OpenTofu HCL, all running Hermes on Fabric throughfabric-agent-ctl:GETaccess to their own sources.One table of roles drives the sandboxes, registrations, grants, agent configurations and toolsets, so adding a researcher is one entry. An agent's configuration change replaces its sandbox through
terraform_dataandreplace_triggered_by. Policies hold only the access no attached provider grants. Handoffs use embedded JSON Schemas, and theagentsoutput gives whatfabric-agent-ctl invokeneeds.WALKTHROUGH.mdexplains the HCL file by file, and every excerpt in it matches the files.What the live trial on a DGX Spark changed in the example:
customprovider, which sendsreasoning_effort: "none". With reasoning on, Nemotron missed Fabric's 320-second invocation deadline.nvidia/nemotron-3-super-120b-a12b, because the earlier one was retired.The README lists what isn't covered yet:
Validation
crates/nemoclaw-e2e/tests/travel_team_example.rsapplies the directory unchanged against the bundle's providers, with fakes for the engines, gateway and model server. It checks each sandbox's providers, grants, toolsets and configuration, an unchanged second plan, that a hosted-model change replaces only the scheduler's and buyer's sandboxes, and teardown. Each OpenTofu command takes under a second; the test takes 5 seconds.cargo ci: passes, with 1542 unit tests and 151 lifecycle tests.fern checkreports no errors.The trial also found that
tofu destroycan't remove gateway storage, which NemoClaw retains by design, and that the docs don't say how to remove it by hand. That's outside this PR.