Skip to content

Epic: Add agent-runnable benchmark harness and value report #5604

Closed

Description

@wscurran

Problem

NemoClaw has strong agent-facing documentation, skills, CLI references, and recovery surfaces, but an external assistant still cannot give a credible, repeatable answer to:

Is NemoClaw fast enough on this machine, and what latency does the sandbox/policy/inference path add?

The OSS Table Manners readiness review called this out as the main remaining Fair area: there is no developer-facing benchmark harness or perf-on-this-machine workflow for sandbox cold start, inference round-trip latency, or policy-shield overhead. Without this, Sprint 7 performance/readiness claims are hard to validate and hard for an agent to summarize for a builder.

Goal

Add a small, agent-runnable benchmark workflow that measures core NemoClaw first-use and inference-path timings, then emits a concise Markdown value report that a developer or assistant can attach to support/debug/planning conversations.

Proposed Scope

  • Add a lightweight benchmark harness, for example under scripts/bench/, that can be run by a developer or coding assistant.
  • Measure at least:
    • sandbox cold-start or first usable prompt time
    • inference round-trip latency through the routed inference layer
    • policy-shield overhead on a fixed, documented request set
  • Emit machine-readable output, such as JSON, for follow-on analysis.
  • Emit a short Markdown report that includes:
    • environment summary
    • provider/model under test
    • benchmark timings
    • pass/warn/fail interpretation where thresholds are owner-approved
    • links or pointers to troubleshooting next steps when results are poor
  • Add documentation, likely docs/reference/benchmarking.md, explaining:
    • prerequisites
    • supported providers/platforms
    • how to run the benchmark
    • how to interpret and share the report

Acceptance Criteria

  • A developer can run one documented command to produce both structured benchmark output and a Markdown value report.
  • The benchmark records sandbox/startup, inference round-trip, and policy overhead timings, or explicitly marks a metric unsupported with a clear reason.
  • The report includes enough environment and provider context to compare results across machines without exposing secrets.
  • The workflow fails clearly when required prerequisites, credentials, provider configuration, or sandbox state are missing.
  • Documentation explains how an agent should run the benchmark and summarize the result.
  • The benchmark does not require posting telemetry or sending results to an external service.

Non-Goals

  • Do not establish permanent public performance claims from a single local run.
  • Do not require GPU hardware for the first version unless the selected provider path requires it.
  • Do not add mutating policy or sandbox-management behavior beyond what is needed to run the benchmark safely.
  • Do not make benchmark thresholds normative until owners approve baseline expectations.

Related Work

Activity

  1. added
    area: docs
    area: inference
    area: local-models
    area: sandbox
    needs: design
    area: performance
    on Jun 22, 2026
  2. added theissue type on Jun 22, 2026
  3. abhi-0906 commented on Jun 23, 2026

    @abhi-0906
    Contributor

    v1 opened as PR #5649 (scripts/bench/, npm run bench).

    Delivered: live inference round-trip latency; sandbox cold-start + policy-shield overhead ingested from onboard trace spans (nemoclaw.sandbox.create_stream, nemoclaw.sandbox.readiness_wait, nemoclaw.policy.application); JSON (nemoclaw.bench.v1) + Markdown value report; secret redaction; no external telemetry; clear non-zero failure on missing prerequisites; README incl. agent-usage. 23 unit tests.

    Deferred (not in this PR, design-gated): normative pass/warn/fail thresholds (depends on #3776) and the docs/reference/benchmarking site page. Live GPU-path numbers still need DGX Spark validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: docsarea: inferencearea: local-modelsarea: performancearea: sandboxneeds: design

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions