Manuscript Offprint

arXiv:2610.24609

From Candidate Admission to Task-Level Return: Auditing LLM-Generated Code under Execution Contracts

Hiroyasu Usami, Keisuke Hara, Ayato Tsuboi, Naohiko Matsuda

Abstract

Admission rules retain generated programs, whereas selection policies return one candidate per task. We audit how these decisions interact with execution contracts in two separately frozen, disjoint HumanEvalPlus cohorts, each comprising 32 tasks, four samples per task per profile and two served profiles. Under the inline execution contract, a structural-and-self-test screen admits 4–9 expanded-suite nonpasses per 80–107 admissions and excludes 14–43 suite passes per 128 planned attempts. A restricted module-supply condition adds 20 and 14 passing admissions for one profile in the respective cohorts, plus one follow-up nonpass, and reduces the excluded suite passes to 14–23. All fixed first-admitted outcomes and abstentions remain unchanged. In the original pool, the added passes enter already all-passing admitted pools; in the follow-up, four of 24 common sample orders lose one passed task. Selected-subset diagnostics separately address registration-sensitive completion and reference-relative assertion disagreement, accounting for input domains and comparator tolerances. In these high-pass pools, candidate retention and task-level return diverge and are reported separately. Results are conditional on the saved pools, contracts and pinned suites; downstream training effects are unmeasured.

Keywords Code generation · Generated tests · Execution contracts · Candidate admission · Task-level selection · Reproducibility

1 Introduction

Admission and selection are different decisions in a generated-code pipeline: an admission rule decides which attempts are retained, and a selector decides which

H. Usami, K. Hara, A. Tsuboi

Department of Computer Science, Graduate School of Engineering, Chubu University, Kasugai, Aichi 487–8501, Japan

E-mail: usami@fsc.chubu.ac.jp

N. Matsuda

Mitsubishi Heavy Industries, Ltd., Research & Innovation Center, Heat Transfer Research Department, Takasago, Hyogo 676–8686, Japan

Hiroyasu Usami et al.

retained candidate, if any, is returned for a task. A generated program can complete its own tests and fail an independent suite; it can also fail its own tests and pass that suite. We provide a complete accounting of candidate admission and task-level return under two execution contracts within the same saved candidate pools.

Executable benchmarks make these distinctions measurable. HumanEval introduced function-level tasks and pass@k estimation (Chen et al., 2021); MBPP and APPS extend executable evaluation to other task distributions (Austin et al., 2021; Hendrycks et al., 2021). EvalPlus exposes failures missed by original benchmark tests (Liu et al., 2023). CodeT selects candidates through execution agreement on generated tests (Chen et al., 2023), while KodCode collects co-generated solutions and tests through self-verification and coverage checks (Xu et al., 2025). The evidence practice at issue is the reuse of a screening outcome as a label for retaining generated code.

We examine a fixed structural-and-self-test screen in two separately frozen, disjoint HumanEvalPlus cohorts, each containing 32 tasks, four samples per task per profile, and two served profiles. The suites were fixed before generation and use reference-derived outputs and task-specific comparators. The original cohort is selected without candidate outcomes; the follow-up is motivated by earlier results and frozen before its own generation. The screen is one fully specified completion-based admission rule, not a representative or optimized production filter. Fixing its three-assertion requirement lets us state exactly what its admission label observes, rather than optimize that rule after seeing its outcomes. A data curator needs both the admitted suite nonpasses and the excluded suite passes; a task solver needs the returned pass, nonpass or abstention. This study measures both and leaves downstream training value unmeasured.

We ask three questions:

  1. How does joint admission disagree with the independent suite in both directions?

  2. Which selected rejections depend on the execution contract, and which self-test expectations disagree with the pinned reference?

  3. How do changed admissions affect task-level returns and abstentions under declared selectors?

For Flash and gpt-oss, admitted expanded-suite nonpasses are 4/80 and 7/100 in the original cohort and 4/83 and 9/107 in the follow-up. The inline screen excludes 43 and 20 passing attempts originally and 34 and 14 in the follow-up, per 128 planned attempts per profile. Under restricted module supply the corresponding exclusions are 23 and 20, and 20 and 14. The prompt does not specify a module name or placement, so inline import failure is distinct from a wrong expected output. Reference substitution, a same-batch registration control, and assertion-local probes diagnose selected original-cohort rejections without extending that diagnosis to the follow-up.

The symmetric inline/module-supply comparison then links retention to return. Restricted module supply adds 20 and 14 passing Flash admissions in the respective cohorts, plus one follow-up nonpass. Every fixed first-admitted suite outcome and abstention remains unchanged. In the original pool, added passes enter already all-passing admitted pools; the unchanged uniform expectation follows from that saturation. In the follow-up, four of 24 common sample orders lose one passed task. These saved-pool contrasts expose what an admission count alone leaves unspecified.

The study contributes three linked results:

  1. Complete bidirectional accounting of admitted independent-suite nonpasses and excluded passes in two separately frozen cohorts, under both inline and restricted module-supply contracts.

  2. Selected-subset diagnostics of contract-sensitive completion and assertion/reference disagreement through implementation substitution, a same-batch registration control, and input-domain/comparator checks.

  3. Task-level replay with explicit abstention and all 24 common sample orders, explaining when additional passing admissions leave returned-suite outcomes unchanged.

A change of execution contract changes which generated candidates are admitted, but it need not improve the task-level returns or abstentions of a declared selector. This audit traces that relationship within the same saved candidate pools. Supporting historical, oracle-diagnostic, and finite-domain controls remain separate populations; Section 7 states the corresponding claim boundaries.

References (17)