# ADR-0002: holdout hardening — sealed, rotating, two-split

Status: **PROPOSED — not enforced.** Nothing in `epb-loop` or `epb-observer` was
changed by this record. Enforcement points are listed so the change is testable
when it lands.

## Context

ADR-0001 separated agent and evaluator. Three gaming surfaces remain:

* the holdout is **hashed, not encrypted** — the seeds live in readable source;
* the holdout **never rotates** — `epochs [133,108,138]`, bases 8109/8484/8895,
  so a long loop can overfit them;
* selection **accepts on dev alone** — holdout is read only after the fact to
  set `gaming=true`, so gaming is *detected* rather than *prevented*.

Source for all three: the reference set in `agi-arc-3-epb/suites/references.md`.

## Decision

1. **Sealed holdout.** Encrypt heldout tasks at rest with a key held in plane 1
   (`agi-governance/keys/`), never present in the agent plane — the same
   boundary as the observer signing key. The agent plane sees hashes only.
2. **Rotating partitions.** Holdout epochs are drawn per run from a seed the
   agent never sees; `tasks_heldout/` publishes hashes of the current rotation.
3. **Two-split acceptance.** A candidate step is accepted only if dev does not
   regress **and** holdout does not regress **and** at least one strictly
   improves. Re-evaluate under stochastic scoring before promoting.

## Consequences

* Cost: the loop runs holdout **once per run** today; rule 3 makes it **once per
  candidate per step** (3x per iteration). Budget this in `budget.yaml` before
  enabling.
* Rule 3 makes the `gaming` flag structural instead of advisory — a gaming step
  cannot be accepted, so `gaming` becomes a regression alarm rather than the
  acceptance test.
* Rule 1 requires key custody outside every agent plane; if the key is ever
  present in the agent plane the seal is meaningless.
* Rules 2 and 3 change the meaning of past runs: the 13-step converged run and
  its `IQ 0.649` were produced under dev-only acceptance and must not be
  compared numerically against runs under this ADR.

## Enforcement points (where a test would go)

* `agi-arc-3-epb/thresholds.yaml` — add `accept_when`; **do not edit the
  existing pre-registration**, append a new dated block.
* `epb-loop POST /loop/step` — selection predicate.
* `epb-observer POST /grade` — already fail-closed on evaluator error.
* Test: a candidate that improves dev while degrading holdout must be rejected
  with `accept:false` and reason `two_split_regression`.
