The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(prompt-eval): record the measured binary's tree SHA, not the scorer's
M3gA-Mindedff0ee6fe4b
diff --git a/scripts/prompt-eval.sh b/scripts/prompt-eval.shindex 9cafef71f9..4a6732c023 100755--- a/scripts/prompt-eval.sh+++ b/scripts/prompt-eval.sh@@ -61,6 +61,10 @@ elif [ -z "${OPENHUMAN_BACKEND_SESSION_TOKEN:-}${OPENHUMAN_BACKEND_API_KEY:-}" ]fi[ -x "$BIN" ] || { echo "prompt-eval: no binary at $BIN (cargo build --bin openhuman-core)" >&2; exit 2; }mkdir -p "$(dirname "$OUT")"+# Every row records the tree the measured binary was built from.+PROMPT_EVAL_BIN_SHA="$(git -C "$(dirname "$BIN")" rev-parse HEAD 2>/dev/null || echo unknown)"+export PROMPT_EVAL_BIN_SHA+echo "binary: $BIN @ $PROMPT_EVAL_BIN_SHA" >&2ids=$(python3 -c 'import json,sys; print("\n".join(c["id"] for c in json.load(open(sys.argv[1]))["cases"]))' "$CASES")[ -n "$ONLY" ] && { echo "$ids" | grep -qx "$ONLY" || { echo "no case $ONLY" >&2; exit 2; }; ids="$ONLY"; }diff --git a/scripts/prompt-eval/score.py b/scripts/prompt-eval/score.pyindex 1d89a5c57b..644b04b407 100755--- a/scripts/prompt-eval/score.py+++ b/scripts/prompt-eval/score.py@@ -222,7 +222,10 @@ def score(doc, case, ws, secs, run=1):"surface": case.get("surface", ""),"precondition": pre,"writes": case.get("writes", []),- "git_sha": subprocess.run(["git", "rev-parse", "--short", "HEAD"], capture_output=True, text=True).stdout.strip(),+ # The tree the measured binary was built from, and the scorer's own.+ "git_sha": os.environ.get("PROMPT_EVAL_BIN_SHA", ""),+ "eval_sha": subprocess.run(["git", "-C", os.path.dirname(os.path.abspath(__file__)), "rev-parse", "HEAD"],+ capture_output=True, text=True).stdout.strip(),"models": models,"pass": not failures,"score": 0.0 if signals else round(max(passed_checks, 0) / max(checks, 1), 3),