feat(examples): add evaluation + optimization closed-loop pipeline#139
Open
coder-mtj wants to merge 3 commits into
Open
feat(examples): add evaluation + optimization closed-loop pipeline#139coder-mtj wants to merge 3 commits into
coder-mtj wants to merge 3 commits into
Conversation
Implements trpc-group#91 — reproducible Evaluation + Optimization pipeline: - Config loading (optimizer.json + evalsets validated) - Baseline evaluation (fake mode with trace evalsets + SDK path) - Failure attribution (10 categories: tool errors, rubric, format, etc.) - Multi-dimensional gate (improvement threshold, critical cases, cost budget) - Validation set comparison (new passes/failures, overfitting detection) - JSON + Markdown report with full audit trail - 6 train+val evalset cases (3 optimizable, 1 degrading, 1 format, 1 edge) - 35 tests covering config, baseline, attribution, gate, validation, report, integration Signed-off-by: coder-mtj <coder-mtj@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #139 +/- ##
==========================================
Coverage ? 87.51874%
==========================================
Files ? 467
Lines ? 44018
Branches ? 0
==========================================
Hits ? 38524
Misses ? 5494
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…overage - Add pipeline/optimize.py: GEPA optimization wrapper (fake + live modes) - Add pipeline/tracing.py: audit trail with seed/timing/cost/reproduce - Add agent/ package: calculator agent for optimization testing - Update run_pipeline.py: integrate new modules, AuditTracer, enhanced CLI - Split monolithic test file into 14 focused test files - Expand from 35 to 189 tests (5.4x increase) - Add 6-dimensional test coverage: unit, integration, mock data, edge/boundary, regression, performance - Enhance evalsets: 34 train + 16 val + 12 holdout cases (multi-domain: math, reasoning, tool calls, Chinese, CJK, format) - Add DESIGN.md and README.md with architecture documentation - All 189 tests passing, pipeline verified end-to-end in fake mode
Author
|
补充了设计文档和开发过程记录:
测试覆盖:189 tests,14 测试文件,6 维度(单元/集成/大规模/边界/回归/性能) 所有 CI checks 通过。如有遗漏或需要调整的地方请告知。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description | 描述
Reproducible Evaluation + Optimization closed-loop pipeline.
Implements: baseline evaluation → failure attribution (10 categories) → optimization → validation set comparison → multi-dimensional gate → JSON/MD report with audit trail.
Related Issue | 关联 Issue
Fix #91
Change Type | 修改类型
Test Coverage | 测试覆盖
python -m pytest examples/optimization/eval_optimize_loop/tests/ -vSelf-test Checklist | 自测清单