Automated prompt compilers search for or rewrite prompts under the implicit assumption that optimization consistently improves downstream task performance. We evaluate this assumption on frontier reasoning models through rigorous paired, same-day measurements. Across four optimizer families (genome search, profile-guided mutation, GEPA, and ESPO) and eight tasks, structured search yields no statistically significant accuracy gains on strong reasoners. However, a discrete structural genome provides essential architectural stability, preventing catastrophic bimodal seed-collapse (where unconstrained search collapses toward the judge floor in 3/5 runs). Through 190-problem evaluations on knowledge-intensive benchmarks, we establish a three-dimensional headroom typology: prompt optimization cannot compensate for intrinsic knowledge deficits or physical token truncation, but successfully resolves protocol and formatting errors. On gpt-6, while free-text reflective search (GEPA) yields a +.14 gain on a task where structured search remains flat, qualitative ablation reveals that ~.035 stems from judge-rubric reconstruction while ~.105 reflects genuine instruction refinement. Our pre-registered AutoAPC-Select deployment gate matches the oracle policy in 5/7 groups and rescues seed-collapse arms with zero regret. Finally, we expose silent backend-mixing in commercial APIs during outage windows and provide automated per-call audit verification tools to ensure empirical evaluation fidelity.
Figures & tables
Method
Paired Base
Headroom
Deploy Gate
DSPy
×
×
×
GEPA
×
×
×
ESPO
×
×
×
Ours (APC)
✓
✓
✓
Table 1: Technical comparison with prior prompt optimizers.
Figure 1: Headroom typology decision map. The diagnostic is evaluated prior to prompt optimization: if the missing capability is intrinsic knowledge or physical output capacity, prompt optimization yields zero payoff.
Task
zero-shot
manual
apc-full
apc-safe
Failure Mode
financial
.6666 ± .0023
.6685 ± .0018
.3085 ± .2362
.6664 ± .0047
3/5 seeds collapse
contract
.9771 ± .0001
.9775 ± .0002
.7035 ± .4586
.9771 ± .0003
1/3 seeds collapse
math
.8436 ± .0001
.8438 ± .0001
.7769 ± .1164
.8436 ± .0001
Stable (one drop)
Table 2: Real qwen3.8-flash holdout scores (mean ± SD, n=3 to 6 seeds). Bimodal collapse: unconstrained rule-root search falls to the judge floor (.13–.17) in 4/8 runs without structural safeguards. In contrast, apc-safe achieves 100% stability (12/12 runs). Extended validation across 77 decision groups (32 baseline + 45 P3 extended corpus) confirms that greedy validation argmax suffices when judges are stable ( σˉ=0.556 – 0.675 ), with complex structured gating winning only 37/77 vs greedy’s 47/77 ( p=0.0125 ). Verified gpt-6 static baselines score .6862 (zero-shot) and .6971 ( manual ); search arms are quarantined (§ 6.3 ).
Pair (b6, s42)
cold
t0
warm-start
contract → math
.6402
.8439
.8441
math → contract
.1850
.9778
.9582
fin → math (gpt-6)
.6336
.8443
— †
Table 3: Cross-task transfer holdout scores. † Quarantined cell served by an anonymous fallback backend during a gateway outage window (§ 6.3 ).
Provider
zero-shot
manual
full
safe
DashScope (s45)
.6692
.6665
.1318
.6657
alias provider (s42)
.6669
.6665
.6150
.6694
gpt-6 (s42)
.6862
.6971
— †
— †
Table 4: Financial holdout scores across providers. † Quarantined cells served by an unverified fallback backend during a gateway outage window (§ 6.3 ).