Separate optimization from permission to deploy
Use when
Your agent-trace evaluator already has reviewed binary labels and saved failure scores, but uses the default 0.50 cutoff or compares models without task-specific threshold selection.
Action
In separately authorized offline analysis, freeze the judge prompt, labels, score identities, and split manifest. Predeclare precision/recall floors and the optimization objective; 80% and F1 are the article’s example, not universal requirements. Use this adapted agent instruction:
“Reuse
saved
scores;
make
no
model
calls.
For
independent
traces,
use
identical
stratified
five-fold
splits
across
models.
Select
thresholds
only
on
training
folds
and
only
when
both
floors
pass.
Otherwise
return
infeasible,
without
an
unconstrained
replacement.
Report
validation
precision,
recall,
F1,
below-floor
flags,
and
the
0.50
baseline.”
Keep related traces together or use time-aware splits where needed. Reserve untouched final test data outside prompt, model, and threshold selection.
Acceptance check
Require disjoint training/validation identities, training-only threshold selection, per-fold confusion counts, and explicit infeasibility records. Do not hide failed folds by dropping them from the summary. An intentionally infeasible fixture must produce no accepted threshold; a feasible control must retain its valid candidate.
A training-feasible candidate that misses validation floors must remain visibly below requirements, not become “approved.” Retain inputs, splits, selected thresholds, metrics, and zero-call execution evidence. Deployment requires the predeclared held-out acceptance check, not a better development average.
Evidence
Husain and Saha publish the exact saved-score prompt and evaluation criteria. Their footnote 9 explicitly discloses that illustrative charts instead retain unconstrained fallback predictions from infeasible splits. That is transparent analysis, not proof that every candidate meets a deployment floor. Scikit-learn’s maintained guide independently supports task-specific thresholds and separate tuning data.
Caveat
The original conversations are private; candidate screening used full-sample curves. We did not inspect the linked score/audit JSON, recompute metrics, or run these fixtures. Finite-sample success does not guarantee future precision or recall; label quality and distribution shift still matter. Threshold selection does not calibrate probabilities. No model ranking, new evaluation, or automatic deployment is endorsed.