Skip to content

Concepts

Suite and scenario

A suite is a YAML file (validated by the suite schema) with a name, a SemVer version, a base seed, verdict thresholds and a list of scenarios. Each scenario names a registered environment, its params, episodes, max_steps and optional perturbations.

Runner and determinism

The runner executes each scenario's nominal episodes, then the same number of episodes per perturbation. Episode seeds are sha256(base_seed, scenario index, scenario name, perturbation, episode) truncated to 31 bits. Before each episode it re-seeds Python's random and (if installed) NumPy, then calls agent.reset(seed) and env.reset(seed).

With the same suite file, agent, seed and package versions, two runs produce identical Scorecards except for measured or per-run fields: scorecard_id, created_at, manifest.hardware, results[].latency_ms, results[].compute, and results[].cost (when it depends on CPU time). provingground.runner.deterministic_view() strips exactly these; the test suite asserts equality of that view across runs. A max_latency_p95_ms threshold makes the verdict depend on timing.

Step records, metrics and judges

Each step produces a record: the env info keys plus event="step", episode, step, perturbation, latency_ms (wall clock around agent.act), cpu_seconds (process CPU time around agent.act), reward, done and adapter usage (tokens_in, tokens_out). At episode end the judge reads the step transcript and returns success and violations; an episode_end record goes to every metric.

Built-in metrics: success_rate (nominal episodes), safety_violations (rule x severity, all episodes), robustness (nominal vs perturbed success), latency (p50/p95/p99/max, nearest-rank), compute (CPU/GPU seconds, tokens; energy_kwh is always null because no meter is integrated), cost (only with --prices).

Judges: the rule judge (default) reads info["success"] and info["violations"]. The LLM judge (--llm-judge MODEL, OpenAI-compatible) is off by default. Its output is untrusted: it must match a strict JSON Schema, and it can only make an outcome stricter (add violations, veto success). Rejected outputs are noted in results[].judge.notes.

An agent that raises (AgentError) fails that episode with an agent_error (medium) violation.

Verdict

All present thresholds must hold for pass; any violated threshold gives fail; otherwise inconclusive when there are no thresholds, fewer nominal episodes than min_episodes, or a robustness ratio is undefined (nominal success 0).

Threshold Rule
min_success_rate overall nominal success >= value
max_critical_violations total critical violations <= value
max_high_violations total high violations <= value
min_robustness_ratio per scenario: perturbed / nominal success >= value
max_latency_p95_ms per scenario p95 latency <= value
min_episodes fewer total nominal episodes gives inconclusive

Environments

Id Availability
gridworld built in, pure Python (perturbation: slip)
gymnasium extra [gym]; params.id is a Gymnasium env id (perturbations: obs_noise, action_noise)
mujoco extra [mujoco]; Gymnasium MuJoCo envs
mujoco-pick-place extra [mujoco]; minimal MJCF pick-and-place (manipulation-basic)
mujoco-locomotion extra [mujoco]; Gymnasium locomotion judged on forward progress (locomotion-robustness)
pybullet extra [pybullet]; Gymnasium-registered PyBullet envs
Isaac Lab future extra, not implemented

Missing extras fail with a message naming the pip install command; nothing heavy is imported until a scenario needs it.

Backends

  • local: in-process.
  • docker: agent in a sandboxed container, runner on the host (Security model).
  • remote: interface only (provingground.backends.remote.RemoteBackend), implemented by a hosted service.
  • quantum-stub: placeholder, raises NotImplementedError.

Scorecard and signatures

See the Scorecard reference. Local runs are unsigned. A hosted service may add a signature over the RFC 8785 (JCS) canonical JSON of the Scorecard without signature; pg verify scorecard.json --public-key key.pem checks ES256, RS256 and PS256 signatures (needs the [verify] extra). Issuing signatures is not part of this package.