Skip to content

docs(examples): run the Agent Knowledge Foundation examples on OpenClaw - #14507

Closed
cv wants to merge 11 commits into
v1from
cv/akf-examples
Closed

cv wants to merge 11 commits into
v1from
cv/akf-examples

Conversation

@cv

@cv cv commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

examples/agent-knowledge-foundation deploys the three Agent Knowledge Foundation examples (supply-chain allocation, market analysis, and provider billing integrity) as OpenClaw agents on hosted Nemotron, one sandbox each, and shows how to grade each run with the example's own eval kit. It uses the API integration's endpoints and sandboxEnv from #14506.

Problem

The Agent Knowledge Foundation examples ship prompts, data, skills and eval kits for any agent harness, but no way to run them in a NemoClaw sandbox: their agents need Python 3.12 with CPU data libraries, 14 vendored skills, and build.nvidia.com tools that read a key from NVIDIA_API_KEY on two hosts.

Change

  • One deployment with three sandboxes, supply-chain, market-analysis and provider-billing. They share an image, an inference route and one API integration, so one gateway serves them; each keeps its own workspace, runtime and isolated network policy, and each eval kit grades one sandbox's run. Three deployments would repeat the provider and the integration and run three gateways for no isolation the sandboxes don't already give.
  • A Dockerfile that derives from the OpenClaw image, as docs/build-deploy/derived-images.md describes, and adds Python 3.12 with the examples' requirements as python3.12, beside Fabric's own python3, and the examples' skills in /opt/akf/skills, which each agent loads through skills.directories with duplicates: reject and bundled: {enabled: false}. NemoClaw doesn't build it; the user builds it from a checkout of the examples repository.
  • One kind: api integration sends the build.nvidia.com key to integrate.api.nvidia.com and ai.api.nvidia.com as NVIDIA_API_KEY, so the examples' embed, rerank, parse and Kumo utilities authenticate without the key entering the sandbox. Nothing else is granted.
  • A README: what each sandbox runs, how to build and deploy, how to prepare, upload, run and download each example, how to run its eval kit on the host with a separate judge, and what is not covered (GPU paths, Auto Ontology, harness traces, persistence).

The examples repository is internal for now, so the README names it without a link. The GPU paths and Auto Ontology are left out: the first needs a GPU image and request, the second a deployment of its own.

Beyond CI

On a local Docker engine (Linux ARM64), with the image built from the examples repository at its current main, the deployment applied and each agent loaded the 14 skills from /opt/akf/skills. Python started by an agent reached the embeddings endpoint on integrate.api.nvidia.com and the reranking endpoint on ai.api.nvidia.com with HTTP 200 using the placeholder in NVIDIA_API_KEY, and was refused example.com.

One run of each example, each graded once:

  • provider-billing: all 22 answer files written; grade.py passed 5 of 8 code-checked tasks, counted 6 blocked (4 Auto Ontology, absent; 2 Kumo) and left 8 rubric tasks for a judge.
  • market-analysis: needed a second request after the model first replied without running its scripts; then all six answers were written. The kit's judge (Nemotron 3 Ultra) met every criterion, and the run failed the kit's Q6 retrieval-receipt check; Q5's Kumo call was blocked.
  • supply-chain: the first request answered in text without writing files; two later requests failed when OpenShell refused OpenClaw's reconnection to integrate.api.nvidia.com after its policy DNS mapping expired (transparent TCP mapping is expired, A policy DNS address stops taking new connections after the trusted resolver's TTL, one second when that TTL is 0 ai-openshell/openshell#4674; docs(limits): note OpenShell's policy DNS expiry for long model turns #14508 adds it to the current limits, which the README links), and the first of them stopped the runtime, which a second apply restarted. Its eval kit was not run.
  • After OpenClaw's bundled skills were turned off, the agents loaded the 14 examples' skills and the two skills OpenClaw's browser and canvas extensions supply. A fresh supply-chain request on the replaced sandbox ended with "The tool run finished, but no final summary was produced" and wrote no files, so turning the bundled skills off did not visibly change that example's result.
  • Kumo calls reached the hosted service with the key and were rejected with HTTP 400 ("inference_config is reserved for API compatibility and must be omitted or empty"), an incompatibility between kumo-relational-client 1.0.2 and the hosted service.

One run per example is an anecdote, not a score for the harness and model.

cv added 2 commits November 16, 2026 12:47
…n variable

A kind: api integration, and openshell_api in HCL, now takes endpoints, a
list of URLs, instead of endpoint, so one registration covers an API whose
services sit on several hosts. sandboxEnv (sandbox_env in HCL) names the
variable the sandbox sees the key in; without it the derived
NEMOCLAW_API_<NAME>_KEY name stays. OpenShell owns the rule that two
providers on one sandbox cannot put keys in the same variable and reports it
during apply, so NemoClaw adds no check of its own. An MCP-policy API takes
exactly one URL.

The intent record moves to version 23.

Signed-off-by: Carlos Villela <[email protected]>
One deployment with three OpenClaw sandboxes runs the supply-chain allocation, market analysis and provider billing integrity examples on hosted Nemotron. A derived image adds Python 3.12 with the examples' CPU libraries and their skills; each run directory is uploaded to its sandbox and downloaded for the example's eval kit. One api integration sends the build.nvidia.com key to both hosts the tools call, as NVIDIA_API_KEY.

Signed-off-by: Carlos Villela <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cv

cv commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi 1.5.2 (session format 3), as a helper agent in Herdr Session header gives the format; the Pi version comes from the harness's install path in the system prompt, not the record
Skills recorded write-tests (complete read); test-driven-development (complete read); nemoclaw-contributor-create-pr (complete read) Tool results in the session record to the cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and tool results to the cutoff
Tool calls partial typescript: 262 Wrapper calls to the cutoff, including failed ones; nested shell, git and workspace calls inside each program are not recorded separately. The same session wrote #14506, on which this change is stacked
Tokens partial input: 63783023; cached input: 62464987; output: 165587 Sum of assistant message usage (input + cacheRead + cacheWrite; cacheRead; output) to the cutoff; covers the whole session, including #14506
Session window recorded 2026-11-16T18:51Z to 2026-11-16T20:09Z; 78 min First record entry to the cutoff, including idle time
Compactions recorded 0 No compaction entries to the cutoff; 13 context edits (elisions) are not compactions
Models recorded azure/anthropic/claude-opus-5-5 (nvidia-internal provider) Model-change entry and assistant messages; no changes
Reasoning levels recorded high One thinking-level entry; no changes

Base automatically changed from cv/api-sandbox-env to v1 November 16, 2026 20:10
@github-actions

Copy link
Copy Markdown
Contributor

@cv cv added the v1 NemoClaw v1 branch label Nov 16, 2026
@wscurran wscurran added area: docs Documentation, examples, guides, or docs build area: packaging Packages, images, registries, installers, or distribution area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening integration: openclaw OpenClaw integration behavior provider: nvidia NVIDIA inference endpoint, NIM, or NVIDIA provider behavior labels Nov 16, 2026
@cafzal

cafzal commented Nov 16, 2026

Copy link
Copy Markdown

@cv @adi0106 Thanks, I ran this end to end on a local Docker engine: the build, plan and apply all work as written, and the paths, hosts and dependencies match the examples repository.

  1. Visibility: the examples repository is still internal, so either keep this as a draft until that repository is public, or copy the examples into NVIDIA/nemoclaw-community and point this at them there.

  2. Supply chain should complete. With the same prepared directory and nemotron-3.5-super-vl, a different harness (Pi) finished all six questions in 2.5 minutes, and the judge passed every rubric criterion. On OpenClaw I reproduced your failures:

    • On build.nvidia.com, the run hit HTTP 429 after about 4 minutes; the key allows roughly one request every 6–8 seconds after a short burst, and OpenClaw gives up after about ten retries.
    • On an endpoint without that limit, OpenClaw logged "settled post-tool turn lacked a final answer", ran tool-less finalization (stop reason length), and a second request replied "Let me start" without calling a tool.

    Could the README mention the build.nvidia.com rate limit, and could the turn handling be raised with the OpenClaw adapter owners?

  3. Kumo is fixed on the examples repository's main, as is the supply-chain judge's token limit, which rejected reasoning judges' verdicts.

  4. Optional: an image requirements file in the examples repository rather than the market one; a command for the RUNTIMES.md edit; Auto Ontology's token goes in an x-api-key header.

@cv cv closed this Nov 19, 2026
@cv

cv commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator Author

Deferring this work until post GTC DC.

@cv
cv deleted the cv/akf-examples branch November 21, 2026 20:44
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: packaging Packages, images, registries, installers, or distribution area: providers Inference provider integrations and provider behavior area: security Security controls, permissions, secrets, or hardening integration: openclaw OpenClaw integration behavior provider: nvidia NVIDIA inference endpoint, NIM, or NVIDIA provider behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants