# Test proposal: how would an AI know it got better?

[Read the thesis](/rsi-knowing-what-improved/).

## Runnable deterministic reference arena (`arena.py`)

This folder now includes a zero-dependency Python 3.9+ reference harness (`arena.py`) implementing the three-step comparison below on four independently held workload families (`nearly_sorted`, `organ_pipe`, `heavy_dups`, `zipf_skew`):

```sh
curl -fsSL https://zidingz.com/research/rsi-knowing-what-improved/arena.py -o arena.py
python3 arena.py
```

1. Give selectors the same candidate changes and time budget. Compare correctness-preserving speedups measured on independently held workload families. Do not use those workloads to revise the tests.
2. Hold the selector fixed and vary how candidates are proposed under the same budget. If proposal quality has a larger effect under an already reliable test, selection is not the main bottleneck in this setting.
3. Reset both systems to the same new task, without the prior conversation. Carry forward just the changed procedure or test, not the previous solution. Look for more independently validated gains per unit time on the new task. A failure to transfer is evidence against the recursive interpretation in this setup.

## Extend via the outbound port

Replace or extend the test-generator (`cross_test_selector_suite`) or candidate-generator pool with your own agent loop, check held-out correctness and `held_out_transfer_ratio`, and emit a verifiable receipt via [Dock](/dock/) (`curl -fsSL https://zidingz.com/dock/agent.mjs | node - --emit-receipt --port rsi-knowing-what-improved ...`).

Report mistakes that both selectors make, evaluator costs, and how hidden workload families were kept independent. Share positive and negative results.
