How Kapso runs it
Each experiment in the tree search is implemented by the coding agent on a git branch and then evaluated byRelBenchHandler:
- The candidate’s
main.pyruns against a sanitized, read-only RelBench cache: the database is physically truncated at the test cutoff (or, for autocomplete, post-cutoff target values are blanked), and the test task table carries only entity ids and timestamps — test labels are physically absent from the candidate’s process. - The candidate writes
val_predictions.npyandtest_predictions.npyto$KAPSO_RUN_DATA_DIR(contract validated: shapes, dtypes, ranges). - The handler computes official validation metrics — the search score — and
computes test metrics privately (quarantined until
final_evaluate). final_evaluatepicks the best-by-validation run, audits its code for forbidden access patterns, and writes a leaderboard-readyfinal_report.json.
benchmarks/relbench/data/sota.json).
A starter kit with the official RelBench reference implementations is seeded into every
workspace under kapso_datasets/.
Usage
CLI Options
Setup
~/.cache/relbench on first use. See
benchmarks/relbench/README.md for the campaign plan, protocol guarantees, and
per-family strategy notes.