eval-snapshot

January 6, 2026 ยท View on GitHub

Evaluate a single snapshot directory against a specific checkpoint.

Quick Start

slop-code eval-snapshot ./my_snapshot \
  -o ./eval_output \
  -p file_backup \
  -c 1 \
  -e configs/environments/docker-python3.12-uv.yaml

Usage

slop-code eval-snapshot [OPTIONS] SNAPSHOT_DIR

Arguments

ArgumentRequiredDescription
SNAPSHOT_DIRYesPath to the snapshot directory containing code

Options

OptionTypeDefaultDescription
-o, --save-dirpathrequiredPath to save evaluation results
-p, --problem-namestringrequiredName of the problem
-c, --checkpoint-numintrequiredCheckpoint number (1-based)
-e, --env-configpathrequiredPath to environment configuration
--rubricpath-Path to rubric JSONL file
--rubric-modelstring-Model ID for rubric grading
--rubric-temperaturefloat0.0Sampling temperature
--rubric-providerenumOPENROUTERLLM provider for grading (OPENROUTER or BEDROCK)
--jsonflagfalseOutput correctness results as JSON

Global options (apply to all commands): | -q, --quiet | flag | false | Suppress console logging (logs still written to file) | | -v, --verbose | flag | false | Increase verbosity (incompatible with --quiet) |

Behavior

This command evaluates a standalone snapshot directory against a specific checkpoint's test cases. Unlike eval and eval-problem, this command:

  • Takes an arbitrary directory as the code snapshot
  • Requires explicit specification of problem name and checkpoint number
  • Outputs results to a separate directory (cannot be same as snapshot)
  • Displays detailed case results with scores and diffs

Output

The command displays:

  • A table of case results with scores and attribute diffs
  • A summary table of scores by group
  • Total pass rate across all cases

Examples

Basic evaluation:

slop-code eval-snapshot outputs/snapshot \
  -o outputs/eval \
  -p file_backup \
  -c 1 \
  -e configs/environments/docker-python3.12-uv.yaml

With rubric grading:

slop-code eval-snapshot outputs/snapshot \
  -o outputs/eval \
  -p file_backup \
  -c 2 \
  -e configs/environments/docker-python3.12-uv.yaml \
  --rubric configs/rubrics/slop.jsonl \
  --rubric-model claude-sonnet-4-20250514

Evaluate different checkpoint:

# Evaluate checkpoint 3 of a problem
slop-code eval-snapshot outputs/snapshot \
  -o outputs/eval_c3 \
  -p trajectory_api \
  -c 3 \
  -e configs/environments/docker-python3.12-uv.yaml

Error Handling

Common errors:

ErrorCauseSolution
"Save directory cannot be the same as snapshot"-o equals SNAPSHOT_DIRUse different output path
"Checkpoint number out of range"Invalid -c valueCheck problem's checkpoint count
"Problem not found"Invalid -p valueVerify problem exists

See Also