Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

bench(corpus-ab): pin run SHA to merged main (post-#1111-fix)

xerj-orgc504958d3810
diff --git a/benchmarks/corpus-ab-2026-10/runs/SHA.txt b/benchmarks/corpus-ab-2026-10/runs/SHA.txt
new file mode 100644
index 000000000..92d5e88d5
--- /dev/null
+++ b/benchmarks/corpus-ab-2026-10/runs/SHA.txt
@@ -0,0 +1 @@
+eb2f5689c0d98a9983294f7a0e1e0b8ac61ecbd8
diff --git a/benchmarks/corpus-ab-2026-10/runs/do-run.sh b/benchmarks/corpus-ab-2026-10/runs/do-run.sh
new file mode 100755
index 000000000..77179ad14
--- /dev/null
+++ b/benchmarks/corpus-ab-2026-10/runs/do-run.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# One A/B run: fresh clone at the pinned SHA, identical task file, token
+# accounting. Usage: do-run.sh <P|X> <id> (expects runs/SHA.txt, a running
+# node on :9831 for X, no node for P, and the release binary at
+# /tmp/xtarget-1093/release/xerj)
+set -e
+ARM=$1; ID=$2
+SHA=$(cat "$(dirname "$0")"/SHA.txt)
+BIN=/tmp/xtarget-1093/release/xerj
+BASE=/root/ab-run-$ID
+[ -x "$BIN" ] || { echo "no binary at $BIN" >&2; exit 1; }
+rm -rf "$BASE"; mkdir -p "$BASE/out"
+git clone -q /workspace "$BASE/repo"
+git -C "$BASE/repo" checkout -q "$SHA"
+sed "s/<ID>/$ID/g" "$(dirname "$0")"/../TASK-$ARM.md > "$BASE/TASK.md"
+cd "$BASE/repo"
+if [ "$ARM" = X ]; then export XERJ_URL=http://localhost:9831; else unset XERJ_URL || true; fi
+START=$(date +%s)
+set +e
+claude -p "$(cat "$BASE/TASK.md")" \
+ --dangerously-skip-permissions --max-turns 80 --output-format json \
+ > "$BASE/usage.raw.json" 2> "$BASE/claude.stderr"
+RC=$?
+set -e
+END=$(date +%s)
+echo "{\"arm\": \"$ARM\", \"id\": \"$ID\", \"sha\": \"$SHA\", \"claude_exit\": $RC, \"wall_s\": $((END-START))}" > "$BASE/runmeta.json"
+cp -r "$HOME/.claude/projects/-root-ab-run-$ID-repo" "$BASE/transcript" 2>/dev/null || true
+echo "run $ID (arm $ARM) done: exit=$RC wall=$((END-START))s"
+ls -la "$BASE/out" || true