Experiment · Paper 1 · Study 5

EXP-004 — Held-out repair

On held-out canonical OPBR scenarios, behavior contracts achieve F1 = 0.982 against the best non-contract baseline at F1 = 0.400. ΔF1 = 0.582. McNemar paired tests against every baseline, Holm-corrected, p ≈ 0.

ID
EXP-004
Type
experiment
Status
CONFIRMED
Date
2026-05-10
Paper
Paper 1 · Study 5
Domain
refund · claim · memory · code
Evidence
400 runs · 4 domains · held-out partition
Protocol
PAPER1_PROTOCOL_FREEZE.json#study-5
Corpus
OPBR-Bench v0 (held-out partition)
Result
Contracts F1 = 0.982 (precision 0.964, recall 1.000) · best baseline F1 = 0.400 · ΔF1 = 0.582 · McNemar p ≈ 0 (Holm-corrected).
Replication
abw run --experiment EXP-004
License
CC BY 4.0
Author
Adrian Sanchez de la Sierra, Genesis Rojas, and Radu Simonescu

Preregistered hypothesis

On a held-out partition of OPBR scenarios across four domains, behavior contracts will detect output-passing behavioral regressions with F1 ≥ 0.90, and will exceed the best non-contract baseline by ΔF1 ≥ 0.30 with paired McNemar p < 0.01 (Holm-corrected across the baseline family).

Method

400 runs across the four OPBR domains, drawn from the held-out partition not used during contract development. Each scenario is paired regression-vs-baseline. Baselines: output-only field check, rich-output provenance, LLM-judge trajectory grader, operational composite, output+operational composite. Contracts are evaluated against the same traces. F1 is the primary metric; McNemar paired tests run on per-run agreement matrices.

Result

Contracts: F1 = 0.982 · precision = 0.964 · recall = 1.000. Best baseline (rich-output provenance): F1 = 0.400. ΔF1 = 0.582. McNemar paired test contracts vs every baseline, Holm-corrected family-wise α = 0.01: p ≈ 0 on all five comparisons.

The inversion relative to Study 2 (where rich-output provenance achieved F1 = 0.890) is mechanistic. Under semi-blind perturbation, output quality degrades alongside behavior, so an output-richness detector catches correlated degradation. On canonical OPBR (this experiment), the agent fills every output field correctly while skipping a precondition. Output evaluation has no signal. Only the trace-level check has signal.

What this experiment does not establish

Contracts dominate baselines on this held-out partition with this model, this runtime, and this domain set. The result does not establish dominance under all perturbation regimes (see EXP-002 for the inverted regime), nor on tasks outside the four OPBR domains, nor on runtimes other than Claude Code (Codex replication pending in EXP-007).

Replication

abw run --experiment EXP-004 Requires Agent Behavior Workbench ≥ 0.4. Corpus auto-downloads from OPBR-Bench v0 held-out partition. Full protocol freeze at exp-004-protocol.json.

Artifacts

Every load-bearing claim on this page traces back to one of the artifacts below. They are the canonical citation targets — not the prose.

Cite as: Sanchez de la Sierra, A. (2026). EXP-004 — Held-out repair. Raising Agents Lab. https://raisingagents.is/lab/exp/exp-004

Related

Back to Lab