tools/eval (stdlib Python): one agent loop, system prompt and tool set (list/read/write/edit files, run, finish) for every language; language profiles for aji_air, rust, zig carry only toolchain invocation, docs location and command classification; bubblewrap sandbox without network, read-only toolchain and /docs; providers: Anthropic Messages, OpenAI-compatible (incl. local servers), scripted; run record per protocol §28 (hashes, versions, limits, hardware, seed, all events, patches, commands, final repository, first-generation snapshot, evaluator verdicts, cost); metrics §14-§17; resumable matrix plans; report (VSR, repair cycles, context, cost per correct solution); classify (§27 categories, caught-by, smoke-test causes). docs/evaluation/harness.md (task format for the private benchmark repository, evaluator contract, record schema); dev-tasks/dev-echo (harness development task, no benchmark family); smoke plan shape for the owner's E-S choice (binary/stream parser, bounded pipeline); self-tests in CI
8 lines
287 B
Bash
Executable File
8 lines
287 B
Bash
Executable File
#!/bin/sh
|
|
# Public test: one input.
|
|
out=$(aji run --grant in=io.read --grant out=io.write --stdin 'hello' main.air) || { echo "FAIL: aji run failed"; echo "$out"; exit 1; }
|
|
case "$out" in
|
|
*'"stdout":"hello"'*) echo "PASS";;
|
|
*) echo "FAIL: unexpected run record: $out"; exit 1;;
|
|
esac
|