Skip to content

feat(config): set the web search key's sandbox variable - #13401

Merged
cv merged 1 commit into
v1from
feat/web-search-sandbox-env
Oct 18, 2026
Merged

cv merged 1 commit into
v1from
feat/web-search-sandbox-env

Conversation

@cv

@cv cv commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Closes #13396. Part of #13394.

Failure

The openshell_web_search resource takes sandbox_env (#13392), which names the variable a sandbox sees for the search key. Hermes's Brave plugin reads BRAVE_SEARCH_API_KEY, while OpenShell's default is BRAVE_API_KEY. The YAML webSearch integration had no matching field, so a YAML deployment couldn't give Hermes the key under the name it expects.

Decision

  • webSearch.sandboxEnv names the variable inside the sandbox, compiled to sandbox_env. Without it, nothing changes.
  • It must be an environment variable name, by the same rule as credential references.
  • Two sandboxes that share a web search resource must agree on it, as they already must for the provider and credential.

Validation

  • A new SDK test failed before the change (unknown fields are not allowed) and passes after. It checks the target and the compiled resource with and without the field, and that an invalid name is rejected.
  • cargo ci passes locally: 1543 unit tests and 151 lifecycle tests.
  • The schema and the configuration reference are regenerated, and docs/agents.md documents the field.

webSearch.sandboxEnv names the variable a sandbox sees for the search key,
compiled to openshell_web_search's sandbox_env, so Hermes's Brave plugin can
read BRAVE_SEARCH_API_KEY.
@cv
cv enabled auto-merge (squash) October 18, 2026 02:32
@cv
cv merged commit 27fc3e6 into v1 Oct 18, 2026
@cv
cv deleted the feat/web-search-sandbox-env branch October 18, 2026 02:44
@github-actions

Copy link
Copy Markdown
Contributor

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.
gaveezy added a commit that referenced this pull request Oct 19, 2026
Bring the branch up to date with 108 v1 commits, including the provider
reorganization (#13131), the key-authenticated HTTP API integration
(#13403), and the web search sandbox variable (#13401).

Resolutions:

- config/integrations.rs: keep v1's API integration and web search
  sandboxEnv. The API key, the web search key, and the resolved web
  search key are SecretRef, because each holds the credential itself.
- config/validation.rs: validate the API integration key as a SecretRef;
  the credential() helper it called no longer exists.
- config/schema/validation.rs: keep v1's sandboxEnv rule for webSearch
  variants beside the SecretRef and FileRef env rules.
- kubernetes/mod.rs: keep v1's boxed ManagedKubernetes; its kubeconfig
  is a FileRef.
- nemoclaw-e2e deployment.rs: take v1's removal of the two inference
  credential tests. #13373 folded them into the export_observations.rs
  test, which now builds its reference as a SecretRef.
- config_kubernetes.rs: keep the new tests from both sides, and add the
  API integration key to the reference-kind test as a secret.
- Regenerate the JSON Schema and the configuration reference.

No other v1 field used Credential; the Fabric model provider and driver
configuration changes add none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wscurran wscurran added area: integrations Third-party service integration behavior area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality integration: brave Brave integration behavior integration: hermes Hermes integration behavior v1 NemoClaw v1 branch labels Oct 23, 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: integrations Third-party service integration behavior area: security Security controls, permissions, secrets, or hardening feature PR adds or expands user-visible functionality integration: brave Brave integration behavior integration: hermes Hermes integration behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants