You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: add Execution & State Match verification pattern page #1360
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:
Activity
docs: add Verification Patterns section and move LLM-as-Judge into it (…
docs: add execution and state match verification guide. (#2359)
docs: add execution and state match verification guide. (NVIDIA-NeMo#…