The experiments so far support a short protocol for evaluating a code-generating system.
Report pass@k with an interval that matches the claim. If the claim is about this benchmark, say so and use the within-problem variance (Theorem 7.1(b)); if it is about problems like these, use the across-problem standard error and expect coverage slightly below nominal for a small benchmark (0.931 to 0.940 at 36 problems in the companion book example). Report with , because the estimator’s variance depends on both.
Report the strength of the verifier next to the score. An accepted-correct rate without the false-acceptance rate of the suite is hard to interpret. With four small examples, 0.497 of wrong samples pass; with eight real inputs, 0.277. The precision ceiling (0.523 and 0.617) is the number to read a loop’s result against.
Compare against the baselines that matter. A loop should be compared with pass@1 (0.4133 here), with the ceiling of its own suite, and with its cost per correct answer. At cap 8 on the small suite the resampling and feedback agents cost 3.995 and 3.507 per correct answer, and on the random suite 4.649 and 3.957; an agent that looks better only because it spends more is not better.
Report both kinds of error. Accepted-and-wrong is the error that reaches users. In the four agent configurations of the companion book example it was between 0.3717 and 0.4776 of episodes at cap 8, whatever the correct-return rate was.
Pick and the cap from costs. Theorem 7.4 and the companion book example give the rule; the constants must come from your own accounting.
Continue with the book
Explore the full treatment, worked examples, and exercises in Applied AI for Generation and Control.
Companion article for Applied AI for Generation and Control, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
