File size: 518 Bytes
10d6c29
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Reward measures structural submission validity only, not mathematical correctness.
# External rubric-guided LLM judging against reference.json awards 0–7 points.
# Offline, isolated Python; PROOF and VERIFIER_DIR allow local verification.
set -eu
here=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
export TESTS_DIR="$here" PROOF="${PROOF:-/app/proof.md}" VERIFIER_DIR="${VERIFIER_DIR:-/logs/verifier}"
mkdir -p "$VERIFIER_DIR"
printf '0\n' > "$VERIFIER_DIR/reward.txt"
python3 -I -S "$here/grade_task.py"