Skip to content

docs: add Execution & State Match verification pattern page #1360

Description

@cwing-nvidia

Summary

Add a new docs page under the planned Build Environments > Verification Patterns section covering Execution & State Match — the pattern where the verifier runs something (code, SQL, actions, proofs) and checks the result or the resulting state.

Scope

This page should cover the spectrum of execution-based verification:

  • Code execution against test cases — extract code, run in subprocess or Ray remote, compare stdout to expected I/O (code_gen, evalplus, bigcodebench, code_fim, competitive_coding_challenges)
  • SQL execution against a database — extract SQL, execute on SQLite/DB, compare result set to gold query results (bird_sql, spider2_lite)
  • State matching — execute the agent's tool calls against a fresh environment, execute ground truth actions against another fresh environment, diff the resulting states (workplace_assistant)
  • Formal compilation — build a proof and compile it; success = reward (math_formal_lean)
  • Sandbox / container execution — run in Docker or isolated environment (cvdp RTL/sim flows)

Common infrastructure patterns to document:

  • asyncio.Semaphore for bounding concurrent subprocesses
  • Ray remote for isolated execution
  • Subprocess with errors="replace" for non-UTF8 output
  • Per-session sandboxes and cleanup

Each pattern should include a code example and link to example resources servers.

Context

Part of the docs restructure planning for the Build Environments section. See also:

Existing resources servers using this pattern

code_gen, evalplus, bigcodebench, code_fim, competitive_coding_challenges, bird_sql, spider2_lite, workplace_assistant, math_formal_lean, cvdp, nvarc

Activity

  1. added
    documentation
    on May 18, 2026
  2. moved this from Dev Todo to Dev WIP in NeMo Gym 0.5.0 - Aug 5on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions