feat: add auditable evaluation and prompt optimization loop#235
feat: add auditable evaluation and prompt optimization loop#235mingri31164 wants to merge 1 commit into
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
AI Code Review没有命令注入的风险。让我来撰写最终的审查结论。 发现的问题🚨 Critical(未发现 Critical 问题。)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #235 +/- ##
==========================================
Coverage ? 88.22774%
==========================================
Files ? 482
Lines ? 45157
Branches ? 0
==========================================
Hits ? 39841
Misses ? 5316
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
40722a1 to
bbda5b0
Compare
|
Addressed the automated review findings in
Re-verified with 16 focused tests, the complete |
AI Code Review我已经掌握了完整的情况。正在撰写代码审查报告。 发现的问题
|
bbda5b0 to
098149d
Compare
|
Follow-up review findings are addressed in
Re-verification: 18 focused tests, complete |
Closes #91
Summary
AgentEvaluator, with fake-model trace mode andcall_agentmode supportedAgentOptimizeras an optional search backend withupdate_source=False; only the external gate may approve source write-backAcceptance behavior
balanced_candidateoverfit_candidateThe overfit candidate improves training while adding failures in
val_critical_safetyandval_stable_math. It is rejected by validation delta, hard-fail, critical-case, new-failure, and train/validation gain-gap checks.Verification
.venv/bin/pytest tests/evaluation/test_eval_optimize_loop_example.py -q -ra: 18 passed.venv/bin/pytest -q tests/evaluation: all ~901 evaluation tests passedgit diff --check: passedE2E evidence
The screenshot is rendered directly from the generated
optimization_report.jsonand shows baseline/candidate scores, both round decisions, overfit rejection checks, per-case delta, cost, and source-write audit.Deliverables
examples/optimization/eval_optimize_loop/entry script, prompt, config, 3 train + 3 validation cases, README, and 459-character design noteoptimization_report.jsonandoptimization_report.mdsample outputs