A reward audited without a model: fixed degenerate completions that must not pass (accepted garbage), cosmetic re-renderings of a passing answer that must not move the score (fragility), known-wrong and equivalent answers (soundness and completeness), and a seeded search that drives the reward up while a held-out intent check fails (a constructed, replayable exploit). The target is one of our environments (baba, sokoban), a scorer you expose over https (POST {text, prompt, answer, info} → {score}, with the rows you give), or a Hub environment whose author consented. The job runs in the background (202 + poll); the answer is a graded record (A pass, C partial, F fail, ERR measured) with a reward-integrity score, verifiable free, 180 days; nothing is charged until it completes.
curl 'https://api.s2ar.dev/v1/audit?env=baba'
curl -X POST https://api.s2ar.dev/v1/audit \
-H 'content-type: application/json' \
-d '{"env": "baba", "n_rows": 3, "row_seed": 0}'
With a key: add -H 'Authorization: Bearer $S2AR_KEY'. Over x402, while sales are open: the same call at https://api.s2ar.dev/x402/v1/audit; unpaid, it answers 402 with the accepts[] to sign, then send the payment as PAYMENT-SIGNATURE (or X-PAYMENT). Sales are paused since 2026-10-16, and the mirror answers 410. From an agent: the MCP tool audit_reward at https://api.s2ar.dev/mcp.
| parameter | type | required | what |
|---|---|---|---|
env | string | one of our environments: baba or sokoban | |
grader_url | string | or an https scorer: POST {text, prompt, answer, info} → {score} | |
rows | array | with grader_url: 1–10 rows {prompt, answer?, info?} | |
pass_threshold | number | with grader_url: the passing score (default 0.5) | |
hub_env | string | or a Hub environment module, with its author's consent on file | |
n_rows | integer | rows sampled (default 3, at most 10) | |
row_seed | integer | which rows (default 0) | |
exploit_budget | integer | search simulations per row (default 128, at most 512) |
{
"ok": true,
"job": "au_7c2e…",
"status": "queued",
"poll": "https://api.s2ar.dev/v1/audit/au_7c2e…",
"eta_s": 20,
"price_usd": 2.0,
"charged_usd": 0.0,
"settles": "when the job completes; a job that fails is never charged"
}
Every paid answer carries its receipt; a record's sha256 re-verifies free at /v1/verify/{sha256}. A call that fails is never charged.
audit a reward: the call, its answer and its record, re-derived.
The errors are the same on every route.